https://github.com/dunghenry/ci_cd_node
CI + CD nodejs
https://github.com/dunghenry/ci_cd_node
cd ci expreesjs heroku-deployment unit-testing
Last synced: 2 months ago
JSON representation
CI + CD nodejs
- Host: GitHub
- URL: https://github.com/dunghenry/ci_cd_node
- Owner: dunghenry
- Created: 2022-11-08T07:44:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T08:37:11.000Z (over 3 years ago)
- Last Synced: 2025-01-25T19:29:33.399Z (over 1 year ago)
- Topics: cd, ci, expreesjs, heroku-deployment, unit-testing
- Language: JavaScript
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Nodejs + CI + CD
### Setup
#### 1,
```js
npm init -y
```
#### 2,
```js
npm i express morgan cors helmet dotenv body-parser
```
#### 3,
```js
npm i -D nodemon colors mocha supertest
```
#### 4, Add script
```js
"start": "node src/index.js",
"dev": "nodemon --inspect src/index.js",
"test": "mocha ./__test__/* --exit"
```
### Start server
```js
npm run dev
```
### Test
```js
npm test
```