Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/djpowers/weather_forecast

An app to retrieve forecast data for a given address
https://github.com/djpowers/weather_forecast

Last synced: about 1 month ago
JSON representation

An app to retrieve forecast data for a given address

Awesome Lists containing this project

README

        

# Weather Forecast

This Ruby on Rails application retrieves forecast data for a provided address. Forecast data provided by the [National Weather Service API](https://www.weather.gov/documentation/services-web-api).

## Setup

Ensure the following are installed on your system:
- Ruby 3.2.2
- PostgreSQL 16.0

Install dependencies with `bundle install`.

Prepare the database with `bundle exec rails db:prepare`.

Start the server with `bundle exec rails server`.

## Tests

Run the full test suite with `bundle exec rspec spec`.

Please note that external HTTP requests are stubbed.

## Schema

The application uses the following table structure:

```mermaid
erDiagram
LOCATION ||--o{ FORECAST : has
LOCATION {
string inputted_address
float latitude
float longitude
string postal_code
string normalized_address
}
FORECAST {
text detailed
integer temperature
string short
string icon
integer number
string temperature_unit
date generated_at
date start_time
date end_time
string name
bigint location_id
}
```