/local_weather

Weather demonstration project

Primary LanguageRubyMIT LicenseMIT

Weather Forecast

Ruby on Rails demostration project

Weather retrieval

The weather retrieval uses Geocoder and the weather.gov API

Setup

  1. Install Ruby version 3.1.2

  2. Install bundler and bundle install

gem install bundler
bundle install
  1. Install yarn and yarn install
yarn install
  1. Run the tests
bundle exec rspec
yarn jest
  1. Enable the Rails cache in development
bundle exec rails dev:cache
  1. Run the Cypress specs
CYPRESS=1 bin/rails server -p 5017
yarn cypress open
  1. Run the webpack dev server
./bin/webpack-dev-server
  1. Run the rails server
bundle exec rails s
  1. Navigate to http://localhost:3000/ and enter your city and state for the forecast

Next steps

The next step is to use a reliable API to retrieve the weather, possibly https://openweathermap.org/api