Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/foxtacles/weather
Weather forecast app
https://github.com/foxtacles/weather
Last synced: about 6 hours ago
JSON representation
Weather forecast app
- Host: GitHub
- URL: https://github.com/foxtacles/weather
- Owner: foxtacles
- Created: 2024-11-12T02:16:59.000Z (4 days ago)
- Default Branch: master
- Last Pushed: 2024-11-12T02:20:32.000Z (4 days ago)
- Last Synced: 2024-11-12T03:23:01.197Z (4 days ago)
- Language: Ruby
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Start Here
Note: this application has been created within a timebox of 2-3 hours.
https://github.com/user-attachments/assets/e975b3a4-960d-4c24-b294-445f6a51556b
#### Clone the repository
`git clone [email protected]:foxtacles/weather.git`#### Add OpenWeatherMap API key
This application requires an OpenWeatherMap API key and a "One Call API 3.0" subscription. To add the API key, edit the Rails credentials with `rails credentials:edit` and add:
```
openweathermap:
api_key: your_key_here
```Note that the first 1000 API calls are free of charge at the time of writing.
#### Create ENV files
Specify the database URLs in `.env` files for local development. For example:
```
# .env.development.local
DATABASE_URL=postgresql://localhost/weather_development
``````
# .env.test.local
DATABASE_URL=postgresql://localhost/weather_test
```#### Run tests
`weather` uses RSpec for tests. Run `bundle exec rspec` to run the entire test suite.
#### Start server
`rails s`