A simple template for a Fastify server with Typescript support, and Prisma + psql.
-
Clone project
-
Create .env file based on .env.example
-
run
docker compose up(or click on theDEVELOP w/Dockertask if you are using vsCode) -
Enter docker container and execute
npx prisma migrate devto apply initial migration -
Try some calls using the attached postman collection
-
Clone project
-
run
yarn install -
Create
.envfile based on.env.example,⚠️ use "localhost" as DB_HOST for local development without docker -
Create DB using credentials indicated in the .env file
-
run
yarn start:dev(or click on theDEVELOPtask if you are using vsCode) -
execute
npx prisma migrate devto apply initial migration -
Try some calls using the attached postman collection