Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/djpowers/weather_forecast
- Owner: djpowers
- Created: 2023-10-14T21:27:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-08T02:26:27.000Z (11 months ago)
- Last Synced: 2024-10-16T07:50:01.083Z (3 months ago)
- Language: Ruby
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.0Install 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
}
```