A web app that uses Express as the backend and fetches data from the Open Weather API and displays it at the front end. You can search for major cities and the app will give you the current weather conditions there.
- Search for any city in the world and get the current temperature, humidity, wind speed, and weather description.
- See the weather icons corresponding to the weather conditions.
- Get an error message if the city is not found or the API request fails.
To run this app locally, you need to have Node.js and npm installed on your machine. You also need to get an API key from [Open Weather].
- Clone this repository or download the zip file.
- Navigate to the project directory and run
npm install
to install the dependencies. - Create a
.env
file in the root directory and add your API key asAPI_KEY=your_api_key
. - Run
npm start
to start the server. - Open your browser and go to
http://localhost:3000
to see the app.
To use this app, simply enter a city name in the search box and click on the search button. You will see the weather information for that city below the search box. You can also press enter to submit your query.
This project is open for contributions. If you want to contribute, please follow these steps:
- Fork this repository and create a new branch for your feature or bug fix.
- Write your code and test it locally.
- Commit your changes and push them to your forked repository.
- Create a pull request with a clear description of your changes and link it to the issue if applicable.
- Wait for a review and feedback from the maintainer.
This project is licensed under the MIT License.