Auteur : Aurélien Blais
- Ruby 2.2.2
- Postgres 9.6.6
- Redis (Used to cache Forecast API response)
- Clone repo
- Copy
config/database_sample.yml
toconfig/database.yml
bundle
rails s
Make sure the mount point is set in the docker-compose.yml
file (and added as data folder [For Docker OSX])
Warning: Port is forwarded to 5433 in order to avoid conflict with running Postgres
To use it, run docker-compose up -d
or docker-compose up
- GET
api/towns
- GET
api/towns/:id
- POST
api/towns/
- PATCH
api/towns/:id
The project can run without Redis, BUT as some people may play with the API, and explode Darksky API quota, it's preferable.