Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.42 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.42 KB

KairoScope Backend Reading Service

One of the microservice for KairoScope. This service is in charge of reading's operations.

Build Status Coverage Status

Functions are hosting on AWS lambda function

Some explainations

  • The wrapper middleware wrappers sample-logging and function-shield for all of the function who uses wrapper.js to wrapper its handler.
  • The flush-metrics middleware will be in charge of flush the metrics as batch for a function. (If the function definds async_metrics: true in the serverless.yml, this middleware does not have to apply due to the metrics will be sent asynchronously)
  • log.js in the libs folder can be used to perform logs with different levels (debug, info, warn, error).
  • cloudwatch.js in the libs folder has several methods to collect metrics for a function.

Test 🎉 🎉

Test code is under the tests folder

  • Unit test: npm run unitTest
  • Unit test with coverage report: npm run unitTestCoverage
  • Integration test: npm run integrationTest
  • Acceptance test: npm run acceptanceTest

Living website

https://kairoscope.resonancepath.com