Skip to content

Latest commit

 

History

History
73 lines (57 loc) · 1.33 KB

README.md

File metadata and controls

73 lines (57 loc) · 1.33 KB

Node MVC Example

Full features including e2e test, unit test and more

Techs

Structure

.
├── README.md
├── babel.config.js
├── docker-compose.yaml
├── e2e
│   ├── dummy-data
│   ├── jest.config.json
│   ├── set-up
│   └── tests
├── nodemon.json
├── package.json
├── src
│   ├── constants
│   ├── controllers
│   ├── helpers
│   ├── index.ts
│   ├── middlewares
│   ├── models
│   ├── routes.ts
│   ├── server.ts
│   ├── services
│   └── types
│   └── views
├── tsconfig.json
└── yarn.lock
  • controllers: codes for handling validation data
  • services: codes for handling main logic
  • models: codes mapping model in mongoDb and code
  • views: codes for rendering views

Set up development environment

First you need to install Docker to boost up local development environment

Then run to start local mongodb server

docker-compose up -d

Install project dependencies

yarn install

Start local development environment

yarn dev

Start in production mode

yarn start