To get started with development:
- Copy
.env.default
to.env
to tell Prisma where to look for its Sqlite database file. - Run
GITHUB_TOKEN=$(gh auth token) pnpm run dev
to start the development server. (You can use a different GITHUB_TOKEN if you prefer and/or embed this token in.env
.) - Open http://localhost:4321/ to see the current site.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm codegen |
Regenerate Prisma and Graphql code |
pnpm prisma db push |
Update the development database schema |
- Astro for the main site architecture. It's configured for server-side rendering, and I expect to turn on a client-side integration for client-side components.
- Prisma for type-safe database management.
- Graphql Codegen to type-check calls to Github's GraphQL API.