How to run
- Install all dependencies from requirements.txt
pip install -r ericalp_requirements.txt
-
Create
users.csv
with the desired user values -
Run the following code to execute
quiz.sql
and createquiz.db
import sqlite3 #run quiz.sql to create the database with open('quiz.sql', 'r') as f: sql = f.read() conn = sqlite3.connect('quiz.db') conn.executescript(sql) conn.commit() conn.close() print("Database initialized")
-
Execute
adduser.py
to add the users inusers.csv
to the database -
Execute
softdes.py
to run the website -
Log in using your credentials, your password is the same as your username