Quick run instructions for EduTrack
- Activate (or create) the virtual environment
PowerShell (recommended if using the included .venv):
cd C:\Users\senth\Downloads\Projects\EduTrack\PythonProject
.\.venv\Scripts\Activate.ps1If you don't have a venv yet:
python -m venv .venv
.\.venv\Scripts\Activate.ps1- Install dependencies
pip install -r requirements.txt- Load seed data
If you have psql available (replace path if necessary):
& "C:\Program Files\PostgreSQL\16\bin\psql.exe" -h localhost -U postgres -d quizdb -f "C:\Users\senth\Downloads\Projects\EduTrack\PythonProject\seed_data.sql"Or use the included Python runner (uses connection env vars or defaults):
# optional: override creds via env vars
$env:PG_PASS = '4321'
python run_seed.py- Run the app
python app.py- Open in browser
Notes:
- If any INSERT fails, open
seed_data.sqland compare column names with your DB schema. - You can set
PG_HOST,PG_DB,PG_USER,PG_PASSenv vars to change DB connection.