This is a simple app using @serverless-guy/lambda
library.
- clone this repository
- cd to the project repo and run
npm i
- run
serverless deploy --stage <stage_name>
Maintenance mode can be controlled inside env.yml
by assigning "YES" or "NO" value to maintenance_mode key.
Please note that, in the example, it is using jsonplaceholder as API, some data may or will not be saved if you're to use POST
endpoint.
- unable to run lambda locally due to misconfiguration
- some libraries/modules may not work on unit test