This project compiles Clojurescript to a NodeJS module using the Gradle Clojure Plugin.
Rudimentary support for loading/using NodeJS modules is provided.
See functions.cljs as an example.
To include NodeJS dependencies, modify build.gradle and add the module to the closurescript .. npmDeps
section.
- Create an Amazon Web Services account
- Install and set-up Serverless Framework CLI
- Install Java 8
- Install NPM
- Install Clojure
- Install Gradle
- To build, run
npm i && ./gradlew clean build
- To deploy, run
serverless deploy
To invoke the function, run:
sls invoke -f hello
This project contains a script the must be initialized in order to use the Repl in IntelliJ.