Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.11 KB

File metadata and controls

53 lines (36 loc) · 1.11 KB

Quick run instructions for EduTrack

  1. Activate (or create) the virtual environment

PowerShell (recommended if using the included .venv):

cd C:\Users\senth\Downloads\Projects\EduTrack\PythonProject
.\.venv\Scripts\Activate.ps1

If you don't have a venv yet:

python -m venv .venv
.\.venv\Scripts\Activate.ps1
  1. Install dependencies
pip install -r requirements.txt
  1. 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
  1. Run the app
python app.py
  1. Open in browser

http://127.0.0.1:5000/

Notes:

  • If any INSERT fails, open seed_data.sql and compare column names with your DB schema.
  • You can set PG_HOST, PG_DB, PG_USER, PG_PASS env vars to change DB connection.