- AWS CLI already configured with Administrator permission
- NodeJS 8.10+ installed
- Docker installed
Prepare the infrastructure
- Create an S3 bucket
aws s3 mb s3://bookmark-service-infra-adamulvi
-
Edit
infra/deploy.sh
and set the Configuration options to match your environment -
Run
make infrastructure
to deploy the infrastructure
Deploy the application
- Add a
git remote
and point it at the CodeCommit repo created bymake infra
. git push
your changes and the pipeline should kick off a build
** Run unit tests
make test
Invoking function locally through local API Gateway
make dev
or
sam local start-api
Invoking function locally using a local sample payload
sam local invoke HelloWorldFunction --event event.json
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