Skip to content

Files

Latest commit

d254ee0 · Mar 11, 2020

History

History
60 lines (37 loc) · 806 Bytes

README.md

File metadata and controls

60 lines (37 loc) · 806 Bytes

ICT test

Simple test server

Structure

  • 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

Routes

Installation

npm install

Build

npm run build

Run

npm run start

Test

npm test

Web GUI

Curl

working example:

curl http://localhost:3000/status
curl --user admin:root http://localhost:3000/cards/6