https://github.com/jvaverka/weather-app-server-py
Backend weather app server using Flask
https://github.com/jvaverka/weather-app-server-py
Last synced: 5 months 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-20T21:47:12.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T21:15:20.303Z (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
```