Microservice written in Clojure using the Luminus web framework
You will need Leiningen 2.0 or above installed, as well as Docker
- Run
docker-compose up --build battery-measurements-apito get the service running - Then you can access the service via that Swagger UI at http://localhost:3006/havel/api-docs/index.html
For normal development:
- Run
docker-compose up -d db - Run
lein repl. This can take a few minutes the first time. - When you see
user=>, you have a running prompt. Run(start) - Now the service should be up and running at http://localhost:3000
- You can connect to the nREPL with the editor of your choice:
- In vim, you can use Vim Fireplace to
:Connectto the nREPL port - In emacs/spacemacs you can use
M-x cider-connectassuming you have cider installed (with spacemacs, enable theclojurelayer and you can use the shortcut, s c) - In IntelliJ with Cursive you can connect with a Remote REPL using a Leiningen REPL Port (see the Cursive REPL documentation)
- You can also type things into the same terminal window you typed
(start)in, but this can be less powerful.
- In vim, you can use Vim Fireplace to
Run docker-compose up db to start the MySQL DB in the docker container.
From the command line run bin/kaocha --plugin cloverage this will run the test runner and output coverage information.