Giter VIP home page Giter VIP logo

weather_app's Introduction

WeatherApp Frontend

This is the frontend for the WeatherApp, implemented using React and Vite. The application allows users to view the weather for a specified city, handle user authentication, access protected routes, and add comments. It includes features such as a dark mode/light mode toggle and a weather forecast visualization.

Features

  • Display current weather for a specified city
  • User authentication (login/logout)
  • Access protected/unprotected routes
  • Add comments
  • Toggle between dark mode and light mode
  • Hourly weather forecast using charts

Technologies Used

  • React
  • JavaScript
  • Recharts
  • @mui/material
  • Vite

Installation

Prerequisites

  • Node.js (v14.x or higher recommended)
  • npm (v6.x or higher) or yarn

Setup

  1. Clone the repository:

    git clone https://github.com/denis-svg/weather_app.git
    cd weather_app
  2. Install the dependencies:

    Using npm:

    npm install

    Using yarn:

    yarn install
  3. Run the development server:

    Using npm:

    npm run dev

    Using yarn:

    yarn dev

    The application will be accessible at http://localhost:3000.

Usage

  1. Open the application in your web browser:

    Navigate to http://localhost:3000.

  2. Login/Sign up:

    Use the authentication system to log in or create a new account.

  3. View Weather:

    Enter the name of a city to view its current weather and hourly forecast.

  4. Toggle Dark Mode/Light Mode:

    Use the provided toggle switch to switch between dark and light modes.

  5. Add Comments:

    Add comments to the weather data for the specified city.

Project Structure

weather_app/
├── public/
│   ├── index.html
│   └── ...
├── src/
│   ├── components/
│   ├── contexts/
│   ├── hooks/
│   ├── pages/
│   ├── services/
│   ├── App.jsx
│   ├── main.jsx
│   └── ...
├── .env
├── package.json
├── vite.config.js
├── README.md
└── ...

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or new features to suggest.

weather_app's People

Contributors

denis-svg avatar

Watchers

 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.