Skip to content

kshyun28/production-ready-serverless

Repository files navigation

production-ready-serverless

An exercise for the Production-Ready Serverless Workshop (Jan 2024) by Yan Cui (theburningmonk).

This serverless application uses JavaScript, Node.js, and Serverless Framework.

Local setup

  1. Install dependencies: npm install

Deployment and testing

  1. Deploy serverless application: npx sls deploy
  2. Generate .env file: npm run dotEnv
  3. Seed restaurants table: node seed-restaurants.js
  4. Run integration tests: npm run test
  5. Run end-to-end tests: npm run test:e2e

Removing the application

To remove the serverless application, run npx sls remove

Load tests

For load testing, the application uses artillery.

  • Artillery configuration is in load-test.yml
  • Run load tests with npm run test:load