https://github.com/preocts/flask_playground
A testing repo
https://github.com/preocts/flask_playground
Last synced: about 1 year ago
JSON representation
A testing repo
- Host: GitHub
- URL: https://github.com/preocts/flask_playground
- Owner: Preocts
- License: mit
- Created: 2024-06-09T01:20:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-29T06:20:04.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T23:46:14.349Z (about 1 year ago)
- Language: Python
- Size: 727 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.python.org/downloads)
[](https://github.com/psf/black)
[](https://github.com/pre-commit/pre-commit)
[](https://results.pre-commit.ci/latest/github/Preocts/flask_playground/main)
[](https://github.com/Preocts/flask_playground/actions/workflows/python-tests.yml)
# flask_playground
Pizza datasource: [download](https://www.kaggle.com/datasets/mexwell/pizza-sales)
## Dev Setup
Assumes use of a virtual environment (venv)
### Install all dependencies and editable package
`python -m pip install -e .[dev,test]; pre-commit install`
### Build a database file
`python -m flask_playground.pizzastore`
### Set app secret key (optional)
`export FLASK_APP_SECRET_KEY=$(python -c "import secrets; print(secrets.token_hex(32))")`
A random key will be assigned to the app if not present in the environment
variables on launch. This will work in most cases but all sessions will be
invalidated on each launch.
### Launch test server
`python -m flask_playground.app`