This repo describes a set of node microservices used by the Vehicle Profiles page. Each service is hosted by AWS Lambda.
To get started, install The Serverless Framework, then install the lone NPM dependency
npm install
To run tests:
npm run test
To lint code
npm run eslint
Mostly, you should use serverless to run each service locally and develop/test that way. However, if you’re trying to resolve what happened to a deployed instance, you’ll need an AWS login with the Vehicle Profiles account. Then, you can head to the cloud watch logs page and find each service’s logs.
We deploy via serverless
serverless deploy
To deploy to different environments, set the provider -> stage setting in serverless.yml
We keep configuration variables in secrets.json
. Example:
{
"someSecretKey": "sk_test_123"
}
Based on serverless-stripe-backend © 2017+, Yos Riady. Released under the MIT License.
Authored and maintained by Yos Riady with help from contributors (list).