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.
- Docker
- Docker Compose
- Ruby 3.1.2
Keys:
- OpenWeatherMap API
- Google Maps API
- Configure OAuth on Google Cloud Platform
- 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
- Run
RAILS_ENV=test rails webdrivers:chromedriver:update
to update the chromedriver bundle exec rspec
yarn test
yarn lint