API to capture time series data from client application to genarate relevant metrics for real time dashboard
- Clone the repository
- Navigate to the project folder
- Run
npm installto install all the required dependencies - Run
sls dynamodb installto install DynamoDB local plugin(You need to have installed JRE(Java Runtime Environment) in your local machine) - Run
npm run start:devto start the serverless offline application locally
Request
- Path:
/{STAGE}/metrics - Method:
POST - Required parameters:
- Need to add the required header values in request header
Response
- API returns the
201on success
Unit tests are written using Jest
- Run
npm run testto run the unit tests(Make sure to run the serverless offline application in background)
