An exercise for the Production-Ready Serverless Workshop (Jan 2024) by Yan Cui (theburningmonk).
This serverless application uses JavaScript, Node.js, and Serverless Framework.
- Install dependencies:
npm install
- Deploy serverless application:
npx sls deploy
- Generate
.env
file:npm run dotEnv
- Seed restaurants table:
node seed-restaurants.js
- Run integration tests:
npm run test
- Run end-to-end tests:
npm run test:e2e
To remove the serverless application, run npx sls remove
For load testing, the application uses artillery.
- Artillery configuration is in
load-test.yml
- Run load tests with
npm run test:load