Weather Report proxy server

The Weather Report proxy server is to be used with the Weather Report web app project

Quick Start

  1. Clone this repository. You do not need to fork it first.

    • git clone https://github.com/AdaGold/weather-report-proxy-server.git
  2. Create and activate a virtual environment

    • python3 -m venv venv
    • source venv/bin/activate
  3. Install the requirements.txt

    • pip install -r requirements.txt
  4. Create a .env file with your API keys

    # .env
    
    # LocationIQ API key
    LOCATION_KEY="replace_with_your_api_key"
    
    # OpenWeather API Key
    WEATHER_KEY="replace_with_your_api_key"
  5. Run the server

    • flask run

Endpoints

Route Query Parameter(s) Query Parameter(s) Description
GET /location q Free-form query string to search for. For Weather Report, this should be the city name.
GET /weather lat & lon Geographical coordinates (latitude, longitude)