Welcome to the Weather API! This is a simple API where you can find the weather by city. Built with Node.js, it's easy to set up and use.
- 🌍 Find the weather by city
- ⚡ Fast and reliable
- 🛠️ Easy to set up
To install and run the Weather API on your local machine, follow these steps:
- Clone the repository:
git clone https://github.com/DevWorld888/weatherApi.git
- Navigate to the project directory:
cd weather-api
- Install the dependencies:
npm install
- Start the server:
npm start
To use the Weather API, you can make requests to the following endpoints:
- Main endpoint:
api/weather
- By city:
api/weather/:city
To get the weather for a specific city, send a GET request to api/weather/:city
, where :city
is the name of the city you want to get the weather for.
GET /api/weather/London
- GET /api/weather: Retrieve general weather information.
- GET /api/weather/:city: Retrieve weather information for a specific city.
- Node.js
We welcome contributions! Please follow these steps to contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature-branch
) - Open a pull request
This project is licensed under the MIT License.
If you have any questions or suggestions, feel free to contact us at [[email protected]].