A project to calculate different risk insurances using Serverless
.
├── modules (modules folder)
│ └── mutation (module / context)
│ └── endpoints (API endpoints)
│ └── insurance.js
├── package.json
├── serverless.yml (serverless config)
├── handlers (functions config)
│ └── insurance-endpoints.yml (endpoints config)
├── shared (shared components)
│ ├── insurance.js **(algorithm to insurance)**
│ └── api.js (API Gateway response helper)
└── test (tests folder)
This boilerplate uses serverless-local
plugin and some containers and plugins to emulate the AWS Resources
yarn run dev
The applications will start on http://localhost:3000
This boilerplate contains following plugins for local development:
- serverless-offline - For run API Gateway local and manage plugins
- serverless-plugin-split-stacks - Split Cloudformation Templates
serverless deploy -v
serverless deploy function -f insurance
serverless insurance -f test -t
serverless remove
yarn run test
yarn run test:unit
yarn run test:integration
yarn run cli db seed --dryRun --server "mongodb://localhost:27017/insurance-risk?retryWrites=true&w=majority"