To be deployed...
- Set up a vritual environment (Optional!)
- Run
pip install -r requirements
- Run
python uhhuh_cli.py [Your time in H:MM:SS format] [trka.rs race result URL]
- Example:
python uhhuh_cli.py 0:30:00 https://trka.rs/results/803/gender/M/
- Example:
- Run
python -m venv .venv
- Run
pip install -r requirements
- Run
. .venv/bin/activate/
- Run
flask --app uhhuh init-db
- Run
flask --app uhhuh run --debug
- Goto http://127.0.0.1:5000
- Run
python -m venv .venv
- Run
pip install -r requirements
- Run
. .venv/bin/activate/
-
Run
pip install build
-
Run
python -m build --wheel
You can find the file in
dist/uhhuh-1.0.0-py2.py3-none-any.whl
.Copy this file to another machine, set up a new virtual environment, then install the file.
-
Run
pip install uhhuh-1.0.0-py2.py3-none-any.whl
Initialize new SQLite database
-
Run
flask --app uhhuh init-db
-
Run
python -c 'import secrets; print(secrets.token_hex())'
to output a random secret key -
Create the
config.py
file in.venv/var/uhhuh-instance/
. Copy the generated value into it.SECRET_KEY = 'generated value goes here'
- Run
pip install waitress
- Run
waitress-serve --call 'uhhuh:create_app'
- Go to http://127.0.0.1:8080