MInimal API for counting clicks
Go to file
Jakub Sokołowski 59fad17e08 add a Dockerfile
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2018-10-17 09:44:45 -04:00
src use env variables for config 2018-10-16 16:09:41 -04:00
.babelrc use newer versions of gulp packages 2018-10-17 09:44:22 -04:00
.gitignore add building of counter app with gulp 2018-10-16 16:04:08 -04:00
Dockerfile add a Dockerfile 2018-10-17 09:44:45 -04:00
README.md add README 2018-10-16 14:03:16 -04:00
gulpfile.js use newer versions of gulp packages 2018-10-17 09:44:22 -04:00
package.json use newer versions of gulp packages 2018-10-17 09:44:22 -04:00

README.md

Description

This is a minimal API done using Koa and Redis for counting clicks.

It exposes just 2 calls:

  • PUT /click - Increments the counter by 1 and returns current count.
  • GET /clicks - Returns the JSON with clicks count.

Usage

For development use:

npm run start

For building use:

npm run build