- Notifications
You must be signed in to change notification settings - Fork3
production-ready fastify boilerplate, fully type-safe from database modeling to API response 🤘
License
bwyx/f
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
production-ready fastify boilerplate, fully type-safe from database modeling to API response 🤘
- Authentication: JWT, internally usingfast-jwt
- Database ORM:Prisma, supportsPostgreSQL (configured),MySQL,SQL Server,SQLite andMongoDB
- Validation: request-response validation usingAjv
- Testing: usingMocha, assertion fromChai, andSinon for mocks
- Environment variables: usingenv-schema, adotenv withAjv validation
- Git hooks: withhusky andlint-staged
- Linting: withESLint andPrettier
List of available routes:
Auth Token:POST /auth/register
- registerPOST /auth/login
- loginPOST /auth/logout
- logout, to invalidate refresh tokenGET /auth/sessions
- get all active sessionPOST /auth/refresh-tokens
- refresh auth tokensPOST /auth/send-verification-email
- send verification token to user's emailPOST /auth/verify-email
- verify user email
User routes:POST /users
- create a userGET /users
- get all usersDELETE /users/:userId
- delete user
About
production-ready fastify boilerplate, fully type-safe from database modeling to API response 🤘
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.