Code Monkey home page Code Monkey logo

upd-weather-app's Introduction

๐ŸŒฆ๏ธ Weather App

The Weather App provides you with the latest weather information for Oulu, including a 7-day forecast, current conditions, and an hourly chart to visualize the week's weather changes.

It uses the Open Meteo API for data, Chart.js for charts, and is built with Vite, React, TypeScript, Axios, and date-fns.

Screenshot 2023-12-19 at 15 07 04

๐ŸŒ Deployment

The Weather App is deployed at https://maguitaria.github.io/weather-app-react/. Enjoy!)

๐Ÿš€ Getting Started

  1. Clone the repository:

    git clone https://github.com/yourusername/weather-app.git
  2. Navigate to the project directory:

    cd weather-app
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm start
  5. Open your browser and access the app at http://localhost:3000.

๐ŸŒŸ Features

  • 7-Day Forecast: Get a detailed 7-day weather forecast for Oulu, including temperature, descriptions, and more.

  • Current Weather: View current conditions in Oulu, including temperature, humidity, and wind speed.

  • Hourly Chart: Visualize hourly weather changes throughout the week with an interactive chart.

  • Responsive Design: Enjoy a seamless user experience on all devices, from desktop to mobile.

๐Ÿ› ๏ธ Technologies Used

  • Vite for a fast and modern development experience.
  • React for building user interfaces.
  • Chart.js for creating interactive weather charts.
  • date-fns for date and time formatting.
  • TypeScript for enhanced code quality.
  • Axios for making API requests.

๐Ÿ“ Testing

E2E Tests with Playwright. As project has only one main page, I decided to go with full e2e testing.

The Weather App has integration tests using Playwright. To run the tests, follow these steps:

Make sure your development server is running:

   bash

npm start

To fire the UI testing and additional features:

//Run with UI demontstration
npx playwright test --ui 
// After test show the report
npx playwright show-report
// To generate tests
npx playwright codegen

Open a new terminal window and run the integration tests: npm test

I reccomend using deployed version to ensure that testing runs smoothly.

Playwright will launch a browser and perform automated tests to ensure the app functions correctly.

Recommendation for testing

Playwright tests are in GitHub actions, with deployment URL.

It's recommended to use the deployed version of the Weather App to ensure that testing runs smoothly.

Please follow these steps to ensure your Weather App is thoroughly tested for integration.

๐Ÿš€ Future Enhancements

  • Location-Based Forecast: Detect and display weather information for your current location.

  • Customizable Units: Choose your preferred units of measurement.

  • Weather Alerts: Receive notifications for severe weather conditions.

  • Extended Forecast: Get a 14-day weather forecast.

  • Historical Data: Explore historical weather data and trends.

  • Additional Charts: Visualize more weather parameters.

  • User Profiles: Save favorite locations for quick access.

โœจ Contributors

๐Ÿ“ License

This project is licensed under the MIT License. See the LICENSE.md file for details.

upd-weather-app's People

Contributors

maguitaria avatar rexol avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.