Gym-app
Gym-app
In order to run, start powershell in front-end folder and start react with npm start
start CMD or use terminal in this folder (with app.py), activate venv and run python -m flask run
Flask looks for FLASK_APP environment variable to see which file should be run. By default it's 'app.py'
It can be set by using: $ set FLASK_APP=different_name.py # On Windows
There are 2 test files (and a third one that hasn't been used quite yet):
add_test_users simply adds a couple of hardcoded users for testing.
- For now the email is used as a membership number to login.
- Run it from main directory (same as app.py) with
python -m testfiles.add_test_users
rm_test_users removes ALL USERS FROM DATABASE
- The intention here is that you add users to test with previous file, then clear database with this one
- Run it from main directory (same as app.py) with
python -m testfiles.rm_test_users
Before comitting to git, the config file can be cleaned by running python -m backend.model.setup