Skip to content

A single-page mobile-friendly app built with React using 3rd-party weather API service. Wrote config files for Webpack and Babel from scratch, and set up the React app with proper testing and tooling without the use of Create-React-App.

Notifications You must be signed in to change notification settings

xinxin510/weather_app

Repository files navigation

Weather App in React

A single-page mobile-friendly app built with React using 3rd-party weather API service. Wrote config files for Webpack and Babel from scratch, and set up the React app with proper testing and tooling without the use of Create-React-App.

Technologies used

Set-up and Workflow: Git Webpack Babel

Frontend Development: React JavaScript HTML5 CSS3

Testing: Testing-Library Jest

Description

Check daily weather (hourly forcast) and 10-day forcast in your city or in any place in the world.

  1. On the initial page load, the weather of Maple Grove, MN is shown. Users can check the weather of cities using the search bar.

weather search
2. View today's hourly forecasts till the end of the day.
3. Check weather details, include sunrise, sunset, precipitation, humidity, wind, pressure, feels like and visibility.

hourly weather
4. View daily forecasts for the next ten days, including the high and low temperatures.
5. Select a day to view hourly forcast and weather details.

forcast
6. Toggle between Celsius and Fahrenheit temperatures to get more adequate results.

toggle
7. Implemented custom tooltips to help users understand the metrics presented on the weather cards.

tooltip

Installation

  1. Install dependencies:
npm install
  1. Get your API key from visualcrossing
  2. Create a file named as config.js
module.exports = {
  apiKey: 'YOUR_KEY_HERE'
}
  1. Run webpack in development with:
npm run start
  1. Open the project in your web browser http://localhost:8080/

About

A single-page mobile-friendly app built with React using 3rd-party weather API service. Wrote config files for Webpack and Babel from scratch, and set up the React app with proper testing and tooling without the use of Create-React-App.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published