Javascript Serverless Microframework for AWS, inspired by aws chalice.
A traditional Japanese vessel, like a cup, is called hai and written "杯".
To run a Docker container locally, you can use the following commands
$ docker build -t hai-local .
$ docker run -p 9000:8080 hai-local
In a separate terminal, you can then locally invoke the function using cURL
$ curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" \
-d '{"payload":"hello world!", "requestContext":{"domainName":"localhost"}, "headers":[], "httpMethod":"GET", "path": "/n"}'
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template