Tamnza is a quiz application in which, teachers can create quizzes and students can sign up and take quizzes related to their interests.
Inspired from How to Implement Multiple User Types with Django.
First, clone the repository to your local machine:
git clone https://github.com/pythonbrad/tamnza.gitCreate the database:
mysql <<< "CREATE DATABASE IF NOT EXISTS tamnza;"Initialize database:
php ./tamnza/tamnza/initdb.phpLoad dummy data:
php ./tamnza/tamnza/initdummydata.phpAdd more subject (On Linux) (Optional)
for subject in Nufi Ghomala Yemba Medumba; do
mysql -D tamnza <<< "INSERT INTO classroom_subject (id, name, color) VALUES (null, \"$subject\", \"green\")";
doneSet your environment (On Linux)
MYSQL_DATABASE=tamnza
MYSQL_ROOT_HOST=localhost
MYSQL_USERNAME=root
MYSQL_PASSWORD=secretFinally, run the development server:
php -S 127.0.0.1:8000The project will be available at 127.0.0.1:8000.
Our docker image is available on Docker Hub
This project is licensed under the terms of the MIT license.
