Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/envylabs/covid
Phoenix app that displays COVID-19 data
https://github.com/envylabs/covid
Last synced: about 1 month ago
JSON representation
Phoenix app that displays COVID-19 data
- Host: GitHub
- URL: https://github.com/envylabs/covid
- Owner: envylabs
- Created: 2020-03-25T19:11:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T04:52:21.000Z (about 2 years ago)
- Last Synced: 2024-03-25T23:03:55.290Z (10 months ago)
- Language: Elixir
- Size: 2.64 MB
- Stars: 2
- Watchers: 8
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rona
To start your Phoenix server:
* Install dependencies with `mix deps.get`
* Create and migrate your database with `mix ecto.setup`
* Install Node.js dependencies with `cd assets && npm install`
* Start Phoenix endpoint with `mix phx.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
## Loading initial data
When starting with a clean database, run `iex -S mix` and then enter the following
to load the most recent data. Each of these steps will take a while to run and will
produce a lot of output in your iex console.```
Rona.Data.load_usa(:ny_times)
Date.range(Date.from_iso8601!("2020-03-22"), Date.utc_today()) |> Enum.each(& Rona.Data.load_usa(:johns_hopkins, &1))
Rona.Data.load_usa(:census)
Rona.Data.update_deltas(Rona.Cases.StateReport)
Rona.Data.update_deltas(Rona.Cases.CountyReport)
```