- download git repo
- remove
.gitfor cleaning git traces. - install dependencies via
npm install - Create
.envfile by copying content from.env.sample - Start dev server via
npm run devto run server in watch mode. - Run Unit Test Cases via
npm run test. - happy coding..
- Define Environment variable
set NODE_ENV=production(windows) ORexport NODE_ENV=production(Linux) - Similarly Define Environment variable for
DB_URL(connection string to database) - Run
npm run start:prodto run application in cluster mode.
/
├── [Public Assets folder] public
├── [Source folder] src
│ └── [Controller] controllers
│ └── [Model] db-interface
│ └── [View] views
│ └── [App Bootstraping file] index.js
│ └── [App Routes file] routes.js
├── [Test Case] test
├── [App Root file] index.js