Express route controllers for all the endpoints of the app.
- v1.0 : API Versioning
- services : All the business logic is here.
- controllers : All the request-response handlers goes here.
- models : All Database models.
- routes : All the application routes is here.
- validators : All the necessary applicaiton validations are stored here.
The bin/ directory serves as a location where you can define your various startup scripts. The www is an example to start the express app as a web server. You can refer this link for more details.
Environment variables, database connections and other configuration related stuff
Constants strings are stored here.
Cron Jobs definitions are stored here.
Application logs are stored here.
All the necessary middleware functions are stored here. For eg. Authentication, Multer Storage, etc.
All postman collections can be stored and found here at one place.
Contains all the static files like images, style, and JavaScript
Event handlers for async task. All event emitters will be handled over here.
Contains all the test files for automation testing tools like Mocha,etc.
It is used for typescript Nodejs projects.
Contains layout templates for the web page representation.
npm install
DEBUG=node-project-structure:* npm startWhere node-project-structure is project name and * represents to print all the debug statements. You can replace * with function name or filename to print particular debug statements respectively.