Simple express rest api boilerplate with user authentication with JWT token & routes for forget password & password reset.
- Run :
npm i
-
Please be sure to check you environment. Setup environnement settings are inside ./.env file
-
Finally Run :
npm run dev
Location | Content |
---|---|
/src/.env |
Environnement settings |
/assets/documents |
Document folder |
/assets/pictures |
Pictures folder |
/src/entity |
Entity files wrote with typeORM decorators |
/src/services |
All services organized by entity with an index |
/src/middlewares |
Middlewares for some services |
/src/routes |
Routes organized by entity with an index |
/src/index.js |
API Entry Point with server configurations |
/src/dtos |
DTOs for entities |
/src/configs |
Imported project configurations from an .env file |
Please kindly respect this project architecture in your code maintenance.
Check /postman
folder to get exported postman collection