NodeJS CI/CD Demo
List of packages
- express
- jest
- jest-junit
- supertest
1. Start node server
$npm install
$npm start
Access to api http://localhost:3000
Jest
2. API Testing with$npm test
PM2
3. Deploy to target server with$pm2 start src/index.js
$pm2 restart all
Newman command
4. API testing with Postman and$cd postman
$newman run node-api.postman_collection.json
// Report
$newman run day01.postman_collection.json -r cli,junit