A weather web app.
Supply an EDN file, similar to the ./env/dev/config/config.edn file.
Where to put the file? - see https://github.com/yogthos/config/.
lein run <arg> or compiled.jar <arg>, where <arg> is:
migrate- upgrades the schemarollback- downgrades the last migrationinitial-fetch- Fetches the forecast, formats it, and saves to the database.fetch- Fetches the forecast, formats it, prepends with fake historical data, and saves to the database.
Without the argument, the web app is run.
JVM 1.8, Clojure 1.8, PostgreSQL 9.5 (won't run on 9.4 because of the use of upsert).
Clojure tests are run using lein test. Some tests require a database to be set up - see
env/test/config/config.edn.
ClojureScript tests are run with doo using Karma - to set it up following steps are required:
$ npm install # Install Karma dependencies. `karma-cli` is going to be installed into
# node_modules. Doo has its local path in project.clj.
# Run tests:
$ lein doo firefox test once
$ lein doo chrome test once
Distributed under the Eclipse Public License. See the LICENSE file.
Copyright © 2016 not-raspberry (https://github.com/not-raspberry/).

