Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thomasjonstrup/fastify-jwt-typescript

Api using fastify, jwt, prisma and TypeScript
https://github.com/thomasjonstrup/fastify-jwt-typescript

fastify jwt prisma typescript

Last synced: 29 days ago
JSON representation

Api using fastify, jwt, prisma and TypeScript

Awesome Lists containing this project

README

        

# 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