https://github.com/jvarho/serverless-hug
Prototype for hug framework in AWS Lambda
https://github.com/jvarho/serverless-hug
hug python serverless wsgi
Last synced: 5 months ago
JSON representation
Prototype for hug framework in AWS Lambda
- Host: GitHub
- URL: https://github.com/jvarho/serverless-hug
- Owner: jvarho
- License: isc
- Created: 2019-10-20T13:08:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-07T13:34:52.000Z (about 5 years ago)
- Last Synced: 2024-06-11T19:07:30.914Z (about 2 years ago)
- Topics: hug, python, serverless, wsgi
- Language: Python
- Size: 195 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
serverless-hug
===
Example to show how to run [hug][1] in AWS lambda using [serverless][2].
Steps to install and test:
1. `nvm install` or `nvm use` (if your default node is incompatible)
2. `npm install`
3. `npm run sls-serve`
This starts a local test server. You can test against it using:
curl -H 'X-Who: Steve' http://localhost:5000/hello
To deploy to AWS use `npm run sls-deploy`.
That requires AWS credentials configured.
For deployed URL, see the output of sls-deploy.
[1]: https://www.hug.rest/
[2]: https://serverless.com/