Skip to content

Commit

Permalink
v3 🚀 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjustesen authored Apr 1, 2024
1 parent 6b5aade commit 4383dbf
Show file tree
Hide file tree
Showing 42 changed files with 7,764 additions and 11,455 deletions.
7 changes: 7 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PUBLIC_APPWRITE_ENDPOINT=YOUR_ENDPOINT
PUBLIC_APPWRITE_PROJECT_ID=YOUR_PROJECT_ID

PUBLIC_APPWRITE_DB_ID=YOUR_DATABASE_ID
PUBLIC_APPWRITE_POSTS_ID=YOUR_POSTS_COLLECTION_ID
PUBLIC_APPWRITE_COMMENTS_ID=YOUR_COMMENTS_COLLECTION_ID
PUBLIC_APPWRITE_BUCKET_ID=YOUR_BUCKET_ID
41 changes: 24 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
# build output
dist

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# appwrite directory
appwrite/
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

6 changes: 0 additions & 6 deletions .stackblitzrc

This file was deleted.

4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
43 changes: 21 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
# 🙋‍♂️ Alex Justesen
Hello, I'm Alex. I'm a web developer and data engineer at MassMutual by day and a keeper of too many projects by night.

This repo is the open sourced code for [alexjustesen.com](https://alexjustesen.com). Feel free to clone it, fork it and make it yours.

## Development
1. Clone or fork the repo
2. Run `npm install` then `npm run dev` to start the development server

## Deployment
1. Sign up for [Cloudflare Pages](https://pages.cloudflare.com/)
2. Create a new site and link it to the repo
3. The `main` branch is for production, all other branches will be deployed to preview environments
4. Set the framework to `Astro` under build configurations
5. Add environment variables for production and preview to set the node version
- `NODE_VERSION` => `v16.13.2`
- Version used needs to be `> v14.15.0` or `v16.0.0` per the [Astro docs](https://docs.astro.build/en/installation/)
- If you don't know your local node version run `node -v`

## Open Source
- [Astro](https://astro.build/)
- [Tailwindcss](https://tailwindcss.com/)
# 🙋‍♂️ Alex Justesen

Hello, I'm Alex. I'm a web developer and data engineer at MassMutual by day and a keeper of too many projects by night.

This repo is the open sourced code for [alexjustesen.com](https://alexjustesen.com). Feel free to clone it, fork it and make it yours.

Based on https://github.com/appwrite/demos-for-astro/tree/main/example-blog

## Development

1. Clone or fork the repo
2. Run `npm install` then `npm run dev` to start the development server

## Deployment

tbd... this is going to need some new steps to get up and running.

## Open Source

- [Astro](https://astro.build/)
- [Tailwindcss](https://tailwindcss.com/)
6 changes: 6 additions & 0 deletions appwrite.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Appwrite Docker command to get a local instance running
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:1.3.7
21 changes: 4 additions & 17 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
// Full Astro Configuration API Documentation:
// https://docs.astro.build/reference/configuration-reference
// @type-check enabled!
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.
// @ts-check
import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';
import mdx from '@astrojs/mdx';
import robotsTxt from "astro-robots-txt";
import sitemap from "@astrojs/sitemap";
import sitemap from '@astrojs/sitemap';
import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
site: 'https://alexjustesen.com/',

integrations: [
preact(),
sitemap(),
tailwind(),
robotsTxt()
]
site: 'https://alexjustesen.com',
integrations: [mdx(), sitemap(), tailwind(), robotsTxt()]
});
Loading

0 comments on commit 4383dbf

Please sign in to comment.