Skip to content

A simple Current Weather web application built using HTML, CSS, JavaScript, React, Bootstrap React, Material-UI, Git, and GitHub for version control and deployment.

Notifications You must be signed in to change notification settings

shubhatRashid/WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Current Weather App

image

  • live @ : https://shubhatsweatherapp.netlify.app/

  • A simple Current Weather web application built using HTML, CSS, JavaScript, React, Bootstrap React, Material-UI, Git, and GitHub for version control and deployment.

Features

  • View the current weather conditions for a specific location.
  • User-friendly interface with responsive design.
  • Real-time updates and accurate weather information.

Prerequisites

Before you start, make sure you have the following tools installed:

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/current-weather-app.git
  1. Navigate to the project directory:
cd current-weather-app
  1. Install the project dependencies:
npm install

Usage

  1. Obtain a free API key from a weather data provider (e.g., OpenWeatherMap).

  2. Create a .env file in the project root and add your API key:

REACT_APP_WEATHER_API_KEY=your_api_key_here
  1. Start the application:
npm start
  1. Open your web browser and go to http://localhost:3000 to access the Current Weather app.

  2. Enter a location (city name or coordinates) and click the "Get Weather" button to view the current weather conditions.

Technologies Used

  • HTML: Structure of the web page.
  • CSS: Styling and layout of the web page.
  • JavaScript: Interactive functionality and dynamic content.
  • React: JavaScript library for building user interfaces.
  • Bootstrap React: UI components library for React applications.
  • Material-UI: React components for a consistent and customizable design.
  • Git: Version control system for tracking changes.
  • GitHub: Platform for hosting and sharing code repositories.

Project Structure

The project directory is organized as follows:

current-weather-app/
├── node_modules/
├── public/
│   ├── index.html
│   └── favicon.ico
├── src/
│   ├── components/
│   │   ├── WeatherCard.js
│   │   └── ...
│   ├── App.js
│   ├── index.js
│   └── ...
├── .env
├── .gitignore
├── package.json
└── README.md
  • node_modules/: Contains project dependencies.
  • public/: Holds static files such as the main HTML file.
  • src/: Contains the source code of the application.
  • .env: Configuration file for environment variables.
  • .gitignore: Specifies files and directories to be ignored by version control.
  • package.json: Project metadata and list of dependencies.

Deployment

  1. Create a GitHub repository for your project.

  2. Push your code to the GitHub repository:

git add .
git commit -m "Initial commit"
git remote add origin https://github.com/yourusername/current-weather-app.git
git push -u origin master
  1. Deploy the app using a platform like Netlify or Vercel. Configure your deployment settings and provide the necessary environment variables.

Acknowledgements

This project was created for educational purposes and may include third-party libraries and APIs. Check their documentation for licensing and usage terms.

Feel free to customize and enhance the Current Weather app to suit your needs. If you have any questions or need assistance, don't hesitate to contact me. Happy coding!

About

A simple Current Weather web application built using HTML, CSS, JavaScript, React, Bootstrap React, Material-UI, Git, and GitHub for version control and deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published