- AWS CLI already configured with Administrator permission
- Git installed and configured
- NodeJS 8.10+ installed
- Docker installed
Prepare the infrastructure
- Create an S3 bucket
aws s3 mb s3://bootcamp-starter-kit-$USER
- Deploy the infrastructure
make infra
Deploy the application
- Add a new git remote and point it at the CodeCommit repo created by
make infra
git remote add codecommit <codecommit-clone-url-http>
- Push your changes and the pipeline should kick off a build
git push -u codecommit master
- AWS CLI
- AWS SAM CLI
- NodeJS 8.10+ installed
- Docker installed
Please refer to the troubleshooting section for help with setting up authentication and authorization
Run unit tests
- Run the unit tests
make test
- Hope they work!
Start the local dev server
- Install npm dependencies
npm install
- Start up the dev server
make dev
-
Write code, it will be automatically recompiled on save.
-
Test your work at the address returned
Running the Swagger editor
- Start the service
make swagger-start
-
Point your browser to http://0.0.0.0:8080
-
When done, stop the service
make swagger-stop
Troubleshooting
If you face the The requested URL returned error: 403
error while performing git operations:
-
Check if your AWS account user being used has the following 3 permissions:
- AWSCodeCommitFullAccess
- AWSCodeCommitPowerUser
- AWSCodeCommitReadOnly
-
Make sure git credentials are setup properly as described here