typescript based rest-API architecture with prisma and fastify framework.
Install Node dependencies:
npm install
This uses Postgres database.
To set up your database, run:
npm run prisma:save
npm run prisma:dep
Run the following command to generate Prisma Client:
npm run prisma: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