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.
- Host: GitHub
- URL: https://github.com/not-raspberry/weather
- Owner: not-raspberry
- License: epl-1.0
- Created: 2016-07-23T17:38:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T08:40:01.000Z (almost 10 years ago)
- Last Synced: 2025-01-29T06:51:41.511Z (over 1 year ago)
- Language: Clojure
- Size: 183 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# weather [](https://travis-ci.org/not-raspberry/weather)
A weather web app.
 
## 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/).