Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
/ hai Public archive

Javascript Serverless Microframework for AWS, inspired by aws chalice.

License

Notifications You must be signed in to change notification settings

piroz/hai

Repository files navigation

hai

Javascript Serverless Microframework for AWS, inspired by aws chalice.

A traditional Japanese vessel, like a cup, is called hai and written "杯".

🐋 local test

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"}'

Useful commands (cdk)

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

About

Javascript Serverless Microframework for AWS, inspired by aws chalice.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published