Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/djblue/serverless-demo
A demo of using clojurescript for aws lambda functions.
https://github.com/djblue/serverless-demo
aws-lambda clojurescript serverless shadow-cljs skeleton-template
Last synced: 24 days ago
JSON representation
A demo of using clojurescript for aws lambda functions.
- Host: GitHub
- URL: https://github.com/djblue/serverless-demo
- Owner: djblue
- Created: 2020-07-12T18:30:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-08T18:22:14.000Z (about 1 year ago)
- Last Synced: 2024-04-14T19:42:35.137Z (7 months ago)
- Topics: aws-lambda, clojurescript, serverless, shadow-cljs, skeleton-template
- Language: Clojure
- Homepage:
- Size: 323 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-demo
A demo of using clojurescript for aws lambda functions.
The choice of make is because it's good at orchestrating multiple cli
commands and has auto-completion.## local dev
To start local development, do:
make dev # kick off a shadow-cljs watch for handler.js
Then in another terminal, do:
make node # start remote node runtime for repl
## formatting
To format source code, do:
make fmt## static analysis
To run all static analysis checks, do:
make ci
This should be the exact target used during continuous integration.
## remote dev
To deploy the lambda to aws, do:
make deploy/dev
To invoke the remote lambda, do:
make invoke/dev
To view remote logs, do:
make logs/devOnly the handler.js, handler.js.map and production npm dependencies are
included in the deployed package. Source maps are bundled into the package
zip to improve stack trace debugging.