- src
- app.ts
- modules
- user
- user.route.ts
- user.schema.ts
- user.controller.ts
- user
Our application is divided into modules. In our user module, we have 3 files
- user.route.ts ⇒ handle user routes
- user.schema.ts ⇒ handling input and response schemas
- user.controller.ts ⇒ main logic of each route
Project to learn how fastify works, Prisma and how TypeScript can help.
LINK: https://medium.com/@atatijr/token-based-authentication-with-fastify-jwt-and-typescript-1fa5cccc63c5