Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jvaverka/weather-app-server-py
- Owner: jvaverka
- License: mit
- Created: 2024-02-20T21:28:33.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-20T21:47:12.000Z (9 months ago)
- Last Synced: 2024-02-20T22:42:26.195Z (9 months ago)
- Language: Python
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```