Commit Graph

18 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 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 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 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 c2b4a4ce6e convert require to import statements 2018-10-16 14:12:06 -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