Deep Consulting - practical assignment task 2
Please note, in addition I created a dashboard to simplify usage.
Navigate to http://localhost:3000 to view dashboard.
You can customize window frame, simply override .env.example file variables
Install the dependencies, build app and start the server.
$ git clone https://github.com/dmitrychurkin/dc-metric-node.git
$ cd dc-metric-node
$ npm install
$ npm run build && npm run serve
API | Endpoint | Body | Response | Response Value |
---|---|---|---|---|
POST | /api/metric/{key} | { value: number } | 200 / 400 | {} |
GET | /api/metric/{key}/sum | 200 | { value: number } |