Skip to content

not-raspberry/weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weather Build Status

A weather web app.

Mobile screenshot Desktop screenshot

Configuration

Supply an EDN file, similar to the ./env/dev/config/config.edn file.

Where to put the file? - see https://github.com/yogthos/config/.

Tasks

lein run <arg> or compiled.jar <arg>, where <arg> is:

  • migrate - upgrades the schema
  • rollback- downgrades the last migration
  • initial-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.

Requirements

JVM 1.8, Clojure 1.8, PostgreSQL 9.5 (won't run on 9.4 because of the use of upsert).

Testing

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

License

Distributed under the Eclipse Public License. See the LICENSE file.

Copyright © 2016 not-raspberry (https://github.com/not-raspberry/).

About

A weather web app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors