A weather application allowing you to search for locations (or add and save them) and view the current forecast, as well as the 3-day outlook for that location.
- Clone into repository located at https://github.com/andrademichael/bright_sky .
- In the terminal, make sure you are inside of the project folder, then type the following commands:
- $ bundle install
- $ rake db:create
- $ rake db:migrate (Note: if this command returns an error, run '$ bundle exec rake db:migrate' instead
- $ ruby app.rb
- create a file named '.env' in the top level of your project folder and put your API keys into the file in the following format:
- GOOGLE_GEOCODE_KEY=yourgooglekey
- DARK_SKY_KEY=yourdarkskykey
- visit 'localhost:4567'
Alternatively, visit https://sheltered-earth-72289.herokuapp.com/ to try our demo
- Works best with cities in the USA, Canada, and the UK; may encounter errors with location accuracy otherwise
For questions, ideas, or concerns, tweet our colleagues at @Twittamir_Putin Alternatively, email me with the subject 'Bright Sky Github'
- Ruby
- Sinatra
- ActiveRecord
- PostgreSQL
- Heroku
- Google Geocoding API
- Dark Sky API
This file is part of (Bright Sky).
(Bright Sky) is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
(Bright Sky) is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with the (Bright Sky). If not, see <http://www.gnu.org/licenses/>.
Copyright (c) 2016 Michael Andrade, Jacob Hixon, Skye Atwood, Eric Bomblatus