Skip to content

Microservice with serverless framework & swagger

Notifications You must be signed in to change notification settings

batmanhit/userstat

Repository files navigation

userstats

API that persists daily stats of compare users usage

Development

Import the compare-userstats.postman_collection.json into postman. Keep it up to date by exporting your collection to the file. The following commands will allow you to run the service locally.

Commands

# clone repo
git clone https://github.com/batmanhit/userstat.git
# install dependencies
npm i
# run server locally
npm start
# run tests on file changes in project
npm run watch
# run unit tests
npm test test/unit
# run integration tests
npm test test/integration
# migrations
migrate up --env .env --state-file migrations/.master|develop|sandbox
migrate down --env .env --state-file migrations/.master|develop|sandbox

Running swagger locally

docker pull swaggerapi/swagger-ui
docker run -p 8080:8080 swaggerapi/swagger-ui
# visit in browser
http://localhost:9000/?url=https://localhost:3000/userstats/swagger

About

Microservice with serverless framework & swagger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published