Skip to content

AdaGold/weather-report-proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

     (venv) $ 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

     (venv) $ flask run --debug

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •