Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thomasjonstrup/fastify-jwt-typescript
- Owner: thomasjonstrup
- License: mit
- Created: 2023-12-09T23:02:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-27T17:21:13.000Z (12 months ago)
- Last Synced: 2023-12-28T17:50:47.984Z (12 months ago)
- Topics: fastify, jwt, prisma, typescript
- Language: TypeScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
# Fastify JWT Project
# App Structure
- src
- app.ts
- modules
- user
- user.route.ts
- user.schema.ts
- user.controller.tsOur 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 routeProject 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