MInimal API for counting clicks
Go to file
Jakub Sokołowski c2b4a4ce6e convert require to import statements 2018-10-16 14:12:06 -04:00
src convert require to import statements 2018-10-16 14:12:06 -04:00
.babelrc add basic koa app 2018-10-16 13:25:04 -04:00
.gitignore add babel build step 2018-10-16 14:06:10 -04:00
README.md add README 2018-10-16 14:03:16 -04:00
package.json convert require to import statements 2018-10-16 14:12:06 -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