Overview of file types:
config/: Used for general configurationcontrollers/: Manage api logicdocs/: Manages auto documentation, contains auto doc schemaslib/: Contains layer to use external services and apismiddleware/: Manages code run as middleware in expressmodels/: Data access layer for MongoDB & mongooseroutes/: Defines the physical api routes that define the applicationservices/: Contains the primary business logicutils/: Generic reusable codevalidators: TBD
This is how data would be processed via the api:
(request) -> Router -> Middleware -> Controller -> Service -> Data
(response) <- Controller <- Service <- Data