An open API service indexing awesome lists of open source software.

https://github.com/not-raspberry/weather

A weather web app.
https://github.com/not-raspberry/weather

Last synced: 12 months ago
JSON representation

A weather web app.

Awesome Lists containing this project

README

          

# weather [![Build Status](https://travis-ci.org/not-raspberry/weather.svg?branch=master)](https://travis-ci.org/not-raspberry/weather)

A weather web app.

![Mobile screenshot](/screenshots/mobile.png "Mobile") ![Desktop screenshot](/screenshots/desktop.png "Desktop")

## 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 ` or `compiled.jar `, where `` 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/).