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 migrate
for production
npm run migrate:prod
Run the following command to generate Prisma Client:
npm run db:gen
Launch your Fastify server with this command:
npm run dev
Build server with command:
npm run build
- Check out the Prisma docs
- Check out the Fastify docs