Serverless microservice to expose dealers and vehicles
GET - https://9tjf6hha91.execute-api.us-west-2.amazonaws.com/dealers
GET - https://9tjf6hha91.execute-api.us-west-2.amazonaws.com/vehicles/{bac}
npm init -y
npm install serverless
npm install serverless-offline
npm install node-fetch@2
npm install yup
npm install jest --save-dev
npm install serverless-plugin-include-dependencies --save-dev
serverless create --template aws-nodejs
serverless plugin install -n serverless-plugin-common-excludes
serverless config credentials --provider aws --key <key> --secret <secret>
serverless deploy
serverless offline start
- Use a short name of service in the serverless.yml