A multi-user app that lets users to attempt quizzes set by the admin.
user-pov.mp4
admin-pov.mp4
Vue: as the frontend frameworkFlask: as the backend serverSqlite: as the database storageBootstrap: for styling the frontend
To install the required dependencies, run these commands
cd backend
pip install -r requirements.txtTo setup node and install required dependencies, run below commands
cd frontend
npm installStart a terminal session and go into the backend/ folder first— cd backend
-
Initialize the Database (Run once before using the app):
python3 init.py
- Creates an empty database scheme in data/data.db
- Populate the database with sample data residing in data/sample-data/
- Sets up the mail creds to be used for sending quiz reminders (taken from the console)
-
Reset the Database (to have a fresh backend from start):
python reset.py
This cleans the database and generated files.
After initializing the database with init.py, start the server:
python3 server.pyYou can also run ./reinit-server.sh to run the above 3 commands together which resets the backend, initializes it again (enter mail-id & password), and starts the server again.
- Start a new terminal session and go into the frontend/ folder first—
cd frontend - Then run
npm run devto start theVue.jsclient. - Open the port on your localhost mentioned in the terminal by running the above command.