Sample Express Architecture to be used as base for other Apps.
├── config
│ └── env
├── controller
│ ├── helper
│ └── base-controller
├── dao
├── lib
│ └── middleware
├── model
├── route
├── service
├── test
├── util
└── views
This Directory Contains all Config Related to App
Environment based configurations
Contains All API Endpoint Controllers . Basically Acts as Facade . Top Level Abstraction.
Controller Helpers for common Tasks
Contains Base Models which can be extended by Controllers according to their requirement
layer to interact with DB
Contains Clients for any 3rd party Modules included in app
Contains Middlewares for routes including login/auth
Model Class Definitions for various Modules in app
Contains Definitions of all API Endpoints and their configurations
This Layer interacts with DAO Layer and responsible for performing any Business Logic on fetched Data
Test Cases for various Modules
Contains Utility functions to be used throughout the app to increase usability
All Other html/view engine related files goes here