/weather

Primary LanguageRuby

Weather Tracker

Screen Shot 2023-03-10 at 11 39 49 PM

This is a simple weather tracker that uses the OpenWeatherMap API to get the current weather for a given city. It also uses the Google Maps API to find the latitude and longitude when creating a new tracker for a place. It allows to login using google auth and save previously created trackers.

Prerequisites

  • Docker
  • Docker Compose
  • Ruby 3.1.2

Keys:

Setup and run

  • Clone the repository
  • Copy .env.example to .env and fill the keys
  • bundle install
  • yarn install
  • Run docker-compose up to start the database and redis
  • In another terminal, run ./bin/dev to start the server
  • Open http://localhost:3000 in your browser

Tests

  • Run RAILS_ENV=test rails webdrivers:chromedriver:update to update the chromedriver
  • bundle exec rspec
  • yarn test
  • yarn lint