This app retrieves weather data from the National Weather Service API for a given city or ZIP code. The app will return weather data for any given city name or ZIP code in the United States. For an invalid location entry the UI will display an error message.
This app requires Ruby version 3.2.6.
To launch the app locally:
-
Make sure you have Ruby set up on your local machine. You can follow this guide to set up Ruby for your OS: https://guides.rubyonrails.org/install_ruby_on_rails.html
-
Clone this repository
-
Run
bundle installin project root directory. -
Run
rails sto start server -
Open localhost:3000/http://127.0.0.1:3000 in browser to access the app UI.
Simply execute rspec in the project root directory to run unit tests.