Skip to content

nicsnet/battery-measurements-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c051f7c · Jan 20, 2020

History

94 Commits
Sep 13, 2019
Oct 7, 2019
Aug 22, 2019
Sep 19, 2019
Sep 19, 2019
Aug 27, 2019
May 17, 2019
Sep 6, 2019
May 17, 2019
May 17, 2019
Jan 20, 2020
Aug 15, 2019
May 17, 2019
Aug 22, 2019

Repository files navigation

battery-measurements-api

Microservice written in Clojure using the Luminus web framework

Prerequisites

You will need Leiningen 2.0 or above installed, as well as Docker

Running the application with docker

Running the battery-measurements-api outside of docker with the provided mysql

For normal development:

  1. Run docker-compose up -d db
  2. Run lein repl. This can take a few minutes the first time.
  3. When you see user=>, you have a running prompt. Run (start)
  4. Now the service should be up and running at http://localhost:3000
  5. You can connect to the nREPL with the editor of your choice:
    • In vim, you can use Vim Fireplace to :Connect to the nREPL port
    • In emacs/spacemacs you can use M-x cider-connect assuming you have cider installed (with spacemacs, enable the clojure layer 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.

Database

Run docker-compose up db to start the MySQL DB in the docker container.

Run tests

From the command line run bin/kaocha --plugin cloverage this will run the test runner and output coverage information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published