Simple test server
-
authorization - service for basic authorization
-
card-validity - card validity service layer
-
card-status - card status service layer
-
logger - simple winston logger
-
status - application status service layer
-
web - handles user interaction with server
-
http://localhost:3000/swagger - API swagger documentation
-
http://localhost:3000/status - application status
-
http://localhost:3000/cards/:id - card info
npm install
npm run build
npm run start
npm test
working example:
curl http://localhost:3000/status
curl --user admin:root http://localhost:3000/cards/6