Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 603 Bytes

ReadMe.md

File metadata and controls

21 lines (15 loc) · 603 Bytes

Fastify JWT Project

App Structure

  • src
    • app.ts
    • modules
      • user
        • user.route.ts
        • user.schema.ts
        • user.controller.ts

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