Skip to content

File & Folder Structure Explanation

Danilo Joksimovic edited this page Oct 10, 2019 · 1 revision
  ├── src                  
           
      ├── managers     #  manage data and state of application (business logic layer)
      ├── models       #  MongoDB Schema model definitions
      ├── services     #  MongoDB and other data-oriented functions (data access layer)
      ├── utils        #  utility functions like UUID generation and HTTP method formatter
      ├── values       #  Global values/macros (endpoints, Cloud provider credentials, etc.)
      ├── test         #  Code for testing the Srvice API
      ├── routes       #  Express Route/Endpoint specifications
      ├── bottle.js    #  Dependency injection configuration (specifies which dependencies are passed into the constructor of 
      └── index.js     #  Main entry file (contains all middleware and ports all other classes and dependencies
  ├── process.env             #  Default Environment Variable config  
  ├── package.json            #  NPM configuration, scripts and dependency list
  ├── package-lock.json       #  NPM Dependency lock file 
  ├── nodemon.json            #  Nodemon configuration
  ├── app.yaml                #  Google Cloud App Engine Configuration
  ├── .eslintrc.js            #  linter configuration         
  ├── .gcloudignore           #  Google Cloud ignore file    
  └── package.json            #  App dependencies & scripts

Clone this wiki locally