Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jvaverka/weather-app-server-py

Backend weather app server using Flask
https://github.com/jvaverka/weather-app-server-py

Last synced: 24 days ago
JSON representation

Backend weather app server using Flask

Awesome Lists containing this project

README

        

# Weather App Backend

Backend weather app server using Flask.

## Run Locally

Clone this repo.

```shell
git clone https://github.com/jvaverka/weather-app-server-py.git
```

Change to the project directory.

```shell
cd weather-app-server-py
```

Setup a virtual environment.

```shell
python3 -m venv .venv
```

Activate the virtual environment

```shell
source .venv/bin/activate
```

Install dependencies.

```shell
python3 -m pip install -r requirements.txt
```

Set environment variables

```shell
export FLASK_ENV=development
export FLASK_APP=app/run.py
export NATIONAL_WEATHER_SERVICE_ROOT_URL="https://api.weather.gov/"
export CLIENT_ROOT_URL="http://localhost:3000/*"
```

Start the server.

```shell
flask run --reload
```