thomasjonstrup / fastify-jwt-typescript

Api using fastify, jwt, prisma and TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Api using fastify, jwt, prisma and TypeScript

License:MIT License


Languages

Language:TypeScript 100.0%