Typescript based rest-API boilerplate with prisma and fastify framework.
Install Node dependencies:
npm install
This uses Postgres database.
To set up your database, run:
npm run migratefor production
npm run migrate:prodRun the following command to generate Prisma Client:
npm run db:genLaunch your Fastify server with this command:
npm run devBuild server with command:
npm run build- Check out the Prisma docs
- Check out the Fastify docs