✧
View Demo ✧
Report Bug ✧
Getting Started ✧ Installing ✧
Author ✧
This project is about building a web application to show a weather forecast using weather API from external services Open weather map. Here you will be able to search for a specific location in the world and also it will automatically detect your current location in the beginning (for that you need to allow location) and will display all the important weather details.
It have some cool features like save the weather data in redux-store and session-storage to reduce the dependency of network requests, search weather details according to the city, detect your current location for displaying weather data, shows a map of that location, sync data to get the latest updated details of the current weather, toast notification for every action, pop up modal to display extra details of seven-day forecast weather, cool zoom-in zoom-out animations and responsive for every screen size.
To use the app, type a name of the city and click on search/press Enter or else click on the Your location weather button, every time you click on the button first it will check if the data is available in the session storage or not, and if not then it will send a network request else it will take the data from session-storage.
- Saving the weather data in redux-store and session-storage to reduce the dependency of network requests
- Search weather details according to the city
- Detect your current location for displaying weather data
- Shows a map of that location
- Sync data to get the latest updated details of the current weather
- Toast notification for every action
- Pop up modal to display extra details of seven-day forecast weather
- Cool zoom-in zoom-out animations
- Responsive for every screen size.
weather-app-demo-readme.mp4
This project was built using React v 17.0.2, Redux v 4.1.2, Chakra UI, CSS and Rest API. It is a web application and for running on your local environment you should follow these guidelines.
- NPM
The project repository can be found in GitHub link or just clone the project using this command.
Using HTTPS
# git clone https://github.com/m-sehrawat/Weather-App.git
- Open terminal on your workspace with
cd /home/workspace/Weather-App
Install NPM
Check that you have node and npm installed
To check if you have Node.js installed, run this command in your terminal:
node -v
To confirm that you have npm installed you can run this command in your terminal:
npm -v
To install all the dependences of the project, run the following command:
npm install
To run the application, run the following command:
npm run dev
- Visual Studio Code
- Vite Js React Template
If you want to contact me, you can reach me through below handles.
© 2022 Mohit Sehrawat
Give a ⭐️ if you like this project!