Skip to content

How to run

  1. Install all dependencies from requirements.txt
pip install -r ericalp_requirements.txt
  1. Create users.csv with the desired user values

  2. Run the following code to execute quiz.sql and create quiz.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")
    

  3. Execute adduser.py to add the users in users.csv to the database

  4. Execute softdes.py to run the website

  5. Log in using your credentials, your password is the same as your username