Quick simple backend for testing frontend interviewing candidates. An API server to make posts!
- Fastify
- @neato/config
- Prisma
Create an .env
file at /.env
with these contents:
PST_DB__FILE_PATH_URL=file:./dev.db
Then finally, spin up the dev server:
pnpm i
pnpm dev
Tip
You must be running NodeJS 20 and use pnpm
for the package manager.
npx prisma migrate dev
- run migrations or create onenpx prisma migrate deploy
- run migrations for productionnpx prisma migrate reset
- reset database with seedingpnpm dev
- run the development server