Commit Graph

32 Commits

Author SHA1 Message Date
Jakub Sokołowski 1d115164f0
add exception for when there are no keys 2018-11-15 14:30:19 +01:00
Jakub Sokołowski ff2907cadd
move logging setup to server.js 2018-11-15 13:18:28 +01:00
Jakub Sokołowski 16fbf0e34b
remove global coverage thresholds 2018-11-14 18:00:43 +01:00
Jakub Sokołowski 3bf5791bf0
make it possible to stub the counter for tests, add more tests 2018-11-14 17:59:12 +01:00
Jakub Sokołowski 1de51e3f2a
add jest for running tests
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2018-11-14 17:18:44 +01:00
Jakub Sokołowski 792f61d55e
formatting 2018-11-14 16:45:05 +01:00
Jakub Sokołowski 9d32799486
add logger for development
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2018-11-14 16:36:28 +01:00
Jakub Sokołowski a324047cd7
change path to /clicks for all calls
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2018-11-14 16:25:25 +01:00
Jakub Sokołowski 98477d8437
add key-based incrementing of clicks and /clicks endpoint
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2018-11-14 16:23:58 +01:00
Jakub Sokołowski af7187a71d
add missing babel-node package and fix starting js file
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2018-11-14 16:23:36 +01:00
Jakub Sokołowski d08d2bb868 fix name of docker image to build 2018-10-17 10:27:38 -04:00
Jakub Sokołowski c5886ddb42 update docs 2018-10-17 10:26:31 -04:00
Jakub Sokołowski 2738dee580 add npm scripts for building docker image
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2018-10-17 10:24:16 -04:00
Jakub Sokołowski de2f2007b4 drop unused packages and stage-2 2018-10-17 10:08:25 -04:00
Jakub Sokołowski 59fad17e08 add a Dockerfile
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2018-10-17 09:44:45 -04:00
Jakub Sokołowski a6d866aac8 use newer versions of gulp packages 2018-10-17 09:44:22 -04:00
Jakub Sokołowski 27fb356c0d use print to show files included 2018-10-16 17:19:54 -04:00
Jakub Sokołowski 7c9a1036f7 add a nodemon task to gulp 2018-10-16 16:51:53 -04:00
Jakub Sokołowski b38edbaa26 use env variables for config
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2018-10-16 16:09:41 -04:00
Jakub Sokołowski 9b0426f6c1 add building of counter app with gulp 2018-10-16 16:04:08 -04:00
Jakub Sokołowski c2b4a4ce6e convert require to import statements 2018-10-16 14:12:06 -04:00
Jakub Sokołowski 283a74f657 add babel build step 2018-10-16 14:06:10 -04:00
Jakub Sokołowski 2a65270400 add README 2018-10-16 14:03:16 -04:00
Jakub Sokołowski be5b1bdb86 fix initialization of counter 2018-10-16 14:01:00 -04:00
Jakub Sokołowski 186116c6c3 add counter implementaiton with async-redis 2018-10-16 13:55:00 -04:00
Jakub Sokołowski a49902da00 add minimal counter 2018-10-16 13:36:24 -04:00
Jakub Sokołowski da3bd0695e add json and router koa modules 2018-10-16 13:31:16 -04:00
Jakub Sokołowski 13ca85c1c7 add basic koa app 2018-10-16 13:25:04 -04:00
Jakub Sokołowski 11cdf44480 add basic babel setup 2018-10-16 13:22:22 -04:00
Jakub Sokołowski b316ac26c8 add basic gitignore 2018-10-16 13:19:37 -04:00
Jakub Sokołowski 225b051c2f add basic package.json with koa and ioredis 2018-10-16 13:18:59 -04:00
Jakub Sokołowski a3652a3a3e empty commit 2018-10-16 13:13:29 -04:00