Giter VIP home page Giter VIP logo

backend-architecture-nodejs-mongoose's Introduction

Backend Architecture Nodejs With MongoDB

The folder structure 🏒

β”œβ”€β”€β”€src
β”‚       app.ts          # App entry point
β”‚   β”œβ”€β”€β”€api             # Express route controllers and middleware for all the endpoints of the app
β”‚   β”œβ”€β”€β”€config          # Environment variables and configuration related stuff
β”‚   β”œβ”€β”€β”€handlers        # Handlers
β”‚   β”œβ”€β”€β”€helpers         # Helper methods
β”‚   β”œβ”€β”€β”€interfaces      # interfaces
β”‚   β”œβ”€β”€β”€jobs            # jobs
β”‚   β”œβ”€β”€β”€loaders         # Split the startup process into modules
β”‚   β”œβ”€β”€β”€models          # Database models
β”‚   └───services        # All the business logic is here
β”œβ”€β”€β”€.editorconfig       # Editorconfig setup
β”œβ”€β”€β”€.env                # Environment variables
β”œβ”€β”€β”€.eslintignore       # To ignore some folder
β”œβ”€β”€β”€.eslintrc           # Eslint setup
β”œβ”€β”€β”€.huskyrc.json       # Husky setup
β”œβ”€β”€β”€.lintstagedrc.json  # lint-staged setup
β”œβ”€β”€β”€.nvmrc              # Version nodejs
β”œβ”€β”€β”€.prettierrc         # Prettier setup
β”œβ”€β”€β”€.jest.config.ts     # Jest setup
β”œβ”€β”€β”€tsconfig.json       # TypeScript setup
└───webpack.config.ts   # Webpack setup

Layer architecture

layer architecture

Raise the server, being at the root of the project

npm run dev for a development environment

npm run build prepare the project for a production environment

npm start for a production environment

backend-architecture-nodejs-mongoose's People

Contributors

nexckycort avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.