This Rails application provides users with current weather conditions and a 3-day forecast for a given address. It integrates with the OpenWeatherMap API and Geocoder to fetch real-time weather data.
- Address-based weather lookup
- Current weather conditions display
- 3-day weather forecast
- Caching mechanism to reduce API calls
- Responsive design using Tailwind CSS
- Hotwire for a modern rails interactive experience
- Ruby 3.3.0
- Rails 7.1.3.4
- PostgreSQL
-
Clone the repository:
git clone https://github.com/accua/weather_app.git cd weather_app
-
Install Dependencies
bundle install
-
Setup the Database
rails db:setup
-
Create a .env file in the app root and add your OpenWeatherMap API key:
OPEN_WEATHER_MAP_API_KEY=your_api_key_here
-
Start Rails server
rails s
-
Navigate to
localhost:3000
in the browser
bundle exec rspec
This application integrates with the OpenWeatherMap API. You'll need to sign up for a free API key to use this application.