/projet

UTBM - LP71

Primary LanguageRuby

Projet LP71 - UTBM

Auteur : Aurélien Blais

Maintainability Test Coverage Build Status

Dependencies

  • Ruby 2.2.2
  • Postgres 9.6.6
  • Redis (Used to cache Forecast API response)

Setup

  • Clone repo
  • Copy config/database_sample.yml to config/database.yml
  • bundle
  • rails s

Docker

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

Api Endpoints

  • GET api/towns
  • GET api/towns/:id
  • POST api/towns/
  • PATCH api/towns/:id

Redis

The project can run without Redis, BUT as some people may play with the API, and explode Darksky API quota, it's preferable.