This project displays weather information for different cities using React and styled with Tailwind CSS.
- Introduction
- Features
- Technologies Used
- Installation
- Usage
- Project Structure
- Contributing
- Conclusion
This project is a React application that displays weather details for various cities using data from a weather API. The application is styled with Tailwind CSS to ensure a responsive and modern design.
- Display current weather information for selected cities
- Responsive design using Tailwind CSS
- Search functionality to find weather details for specific cities
- Display temperature, humidity, wind speed, and weather conditions
- Frontend: React
- Styling: Tailwind CSS
- Data Fetching: Axios
- API: OpenWeatherMap API (or any other weather API)
Follow these steps to set up the project locally.
- Node.js and npm installed on your machine
- Git installed on your machine
-
Clone the repository
git clone https://github.com/malthaf9/Weather-App-React cd weather-app-project
-
Install dependencies
npm install
-
Start the development server
npm start
The application will open in your default browser at
http://localhost:3000
.
-
Search for a city
- Use the search bar to find weather information for specific cities.
-
View weather details
- The app displays current weather details including temperature, humidity, wind speed, and general weather conditions for the searched city.
Here's an overview of the project structure:
weather-app-project/ ├── public/ │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt ├── src/ │ ├── components/ │ │ ├── Forecast.js │ │ ├── Inputs.js │ │ ├── TemperatureAndDetails.js │ │ ├── TimeAndLocation.js │ │ └── TopButtons.js │ ├── services/ │ │ └── weatherService.js │ ├── App.css │ ├── App.js │ ├── App.test.js │ ├── index.css │ ├── index.js │ ├── logo.svg │ ├── reportWebVitals.js │ └── setupTests.js ├── .gitignore ├── README.md ├── package-lock.json ├── package.json └── tailwind.config.js
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
-
Fork the repository
- Navigate to the repository you want to contribute to.
- Click the "Fork" button in the top right corner of the repository page. This will create a copy of the repository in your GitHub account.
-
Clone your forked repository
git clone https://github.com/malthaf9/Weather-App-React cd weather-app-project
-
Create a new branch
- It is important to create a new branch for your changes to keep your
main
branch clean and to make it easier to manage multiple pull requests.
git checkout -b feature-name
- It is important to create a new branch for your changes to keep your
-
Make your changes
- Make the necessary changes in your local repository.
-
Commit your changes
- Commit your changes with a descriptive commit message.
git commit -m "Add some feature"
-
Push your changes to your forked repository
- Push your changes to the branch you created on your forked repository.
git push origin feature-name
-
Create a Pull Request
- Navigate to the original repository on GitHub.
- Click on the "Pull requests" tab.
- Click the "New pull request" button.
- Select the branch you created in your forked repository and compare it with the original repository's
main
branch. - Add a title and description to your pull request explaining what changes you have made.
- Click the "Create pull request" button.
- This project showcases how to use React and Tailwind CSS to create a dynamic, responsive weather application. Contributions are welcome to improve and expand the project. Thank you for your interest and happy coding!