Skip to content

This CLI Weather App utilizes API from OpenWeatherMap. A user can enter a valid US zip code to view the main weather and temperature for the next 5 days.

License

Notifications You must be signed in to change notification settings

chienleow/weather_app

Repository files navigation

WeatherApp

Weather App is a Ruby gem with a CLI (command line interface). It utilizes API from OpenWeatherMap. On start up, the app will welcome the user and ask for a US zipcode. The User enters a valid US zipcode to view the main weather and temperature for the next 5 days. Then, the user can hit any key to restart the session.

Built With

Demo

Installation

To get started locally, follow the steps:

  1. Navigate to the repo https://github.com/chienleow/weather_app
  2. Click the green button "Clone" on the top right and copy the remote URL from "Clone with SSH"
  3. Type git clone then paste the copied URL into your terminal
  4. Install dependencies with bundle install
  5. Sign up for a free account to get an API key from https://openweathermap.org/api
  6. Follow the steps to hide your API key How to hide your API keys
  7. Add your API key in .env file OPEN_WEATHER_MAP_API_KEY = 'YOUR_API_KEY'

Usage

To run Weather App from your command line, type the below and follow the on screen prompts.

bin/weather

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/chienleow/weather_app. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the WeatherApp project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

This CLI Weather App utilizes API from OpenWeatherMap. A user can enter a valid US zip code to view the main weather and temperature for the next 5 days.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published