Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.45 KB

README.md

File metadata and controls

38 lines (24 loc) · 1.45 KB

Weather App 🌩️

This application is designed to provide weather information based on user input and location data. This README file will guide you through the setup process and explain how to use the app effectively.

Features

  • Node.js and Express.js
  • npm (Node Package Manager)
  • MongoDB (for storing location data)
  • Postman (for managing API requests)

Usage

The Weather App provides a simple RESTful API for retrieving weather information.

API Endpoints

Get Weather by Location

  • Endpoint: /api/weather
  • Method: GET
  • Query Parameters:
    • location: The name of the location to fetch weather data for (e.g., London).
  • Response:
    • On success, the API will respond with a JSON object containing weather information for the specified location.
    • On failure, an appropriate error message will be returned.

Example Usage

To retrieve weather data for London, make a GET request to http://localhost:3000/api/weather?location=London. The response will include details such as temperature, humidity, wind speed, and weather conditions for that location.

Contributing

Contributions to this project are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. Make sure to follow the existing coding style and guidelines.

Contact

If you have any questions or need further assistance, feel free to reach out to me at [email protected].