This codebase goes through various AWS Serverless Application Model sample applications to configure them for full local development.
- Clone the repo
git clone https://github.com/cj-taylor/aws-sam-local-samples.git
cd aws-sam-local-samples
-
Install the dependencies
-
Setup the application
# example: stepfunction-stocktrader
cd stepfunction-stocktrader
make setup
- View logs to observe the usage of the application (new terminal)
# example: stepfunction-stocktrader
cd stepfunction-stocktrader
make logs
- Open a new terminal and run a command to run the application (new terminal)
# example: stepfunction-stocktrader
cd stepfunction-stockrader
make run
- Cleanup after the application
Note: Stop the commands running make setup
and make logs
first
# example: stepfunction-stocktrader
cd stepfunction-stockrader
make teardown
- AWS Serverless Application Model - Testing and debugging serverless applications
- AWS Step Function - Setting Up Step Functions Local
- Amazon DynamoDB - Deploying DynamoDB Locally on Your Computer
- Localstack - A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline!