Node + Express + MongoDB (Folder Structure) with JWT Authorization + Custom ACL (Async / Await) ES6 Features.
Note: This is use for Advance level API using new features.
I have created one more folder structure for Basic use, without JWT Auth & Middelware
Link: https://github.com/rahulshukla-rs/node-express-mongodb-folder-structure
Organizing our application:
Inside the MainApp directory, I have created the following four subdirectories
- app.js
- config
- server.js
- acl.js
- api
- controllers
- models
- routes
- middleware
- package.json
- .gitignore
- node_modules