A little serverless lambda providing CRUD functionality for a MongoDB collection! ๐
First, build:
./gradlew clean build
Run it with this command:
sls offline --skipCacheInvalidation --useSeparateProcesses start
This is also aliased as the start command:
npm start
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
./gradlew clean build
- To deploy, run
serverless deploy
This project contains a script the must be initialized in order to use the Repl in IntelliJ.