Skip to content

Latest commit

 

History

History
87 lines (67 loc) · 1.53 KB

README.md

File metadata and controls

87 lines (67 loc) · 1.53 KB

EdLab Node.js Skeleton

Template Usage

File Structure

.
├── Dockerfile
├── LICENSE
├── README.md
├── config
│   ├── app_config.js
│   ├── app_config_private.js
│   ├── constants.js
│   └── index.js
├── ecosystem.config.js
├── package-lock.json
├── package.json
├── server
│   ├── app.js
│   ├── index.js
│   ├── lib
│   │   ├── Logger.js
│   │   └── Response.js
│   └── routes
│       └── error.js
└── test
    └── basic.test.js

Development

Start development server

npm i
npm run dev

Test

npm run test
npm run test:report
npm run test:coverage

Bump version

npm version patch
npm version minor
npm version major

Deployment

Build

npm run build

Start server

npm start

Start server with Docker

npm run start:docker

Start new project

git clone https://github.com/EdLab/node-skeleton.git NEW_PROJECT && cd NEW_PROJECT && npm i

References