SweaterWeather is a Rails API application that provides weather forecasts and road trip planning with weather information.
- User registration and authentication
- Current weather forecasts
- Hourly and daily weather forecasts
- Road trip planning with estimated travel time and weather at destination
- Ruby 3.x
- Rails 7.x
- PostgreSQL
-
Clone the repository:
git clone https://github.com/your-username/sweaterweather.git cd sweaterweather
-
Install dependencies:
bundle install
-
Set up the database:
rails db:create db:migrate
-
Set up environment variables: Create a
config/credentials.yml.enc
file with your API keys:EDITOR="vim" rails credentials:edit
Add your API keys:
maps: access_key: your_mapquest_api_key weather: access_key: your_weatherapi_key
-
Start the server:
rails server
POST /api/v1/users
POST /api/v1/sessions
GET /api/v1/forecast?location=denver,co
POST /api/v1/road_trip
bundle exec rspec
- MapQuest API for geocoding and directions
- WeatherAPI for weather forecasts
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request