Skip to content

DevWorld888/weatherApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


🌤️ Weather API

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.

🌟 Features

  • 🌍 Find the weather by city
  • ⚡ Fast and reliable
  • 🛠️ Easy to set up

🚀 Installation

To install and run the Weather API on your local machine, follow these steps:

  1. Clone the repository:
    git clone https://github.com/DevWorld888/weatherApi.git
  2. Navigate to the project directory:
    cd weather-api
  3. Install the dependencies:
    npm install
  4. Start the server:
    npm start

📚 Usage

To use the Weather API, you can make requests to the following endpoints:

  • Main endpoint: api/weather
  • By city: api/weather/:city

Example

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

📘 Endpoints

  • GET /api/weather: Retrieve general weather information.
  • GET /api/weather/:city: Retrieve weather information for a specific city.

🛠️ Technologies Used

  • Node.js

🤝 Contributing

We welcome contributions! Please follow these steps to contribute:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature-branch)
  5. Open a pull request

📄 License

This project is licensed under the MIT License.

📞 Contact

If you have any questions or suggestions, feel free to contact us at [[email protected]].


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published