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.git
Create the database:
mysql <<< "CREATE DATABASE IF NOT EXISTS tamnza;"
Initialize database:
php ./tamnza/tamnza/initdb.php
Load dummy data:
php ./tamnza/tamnza/initdummydata.php
Add 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\")";
done
Set your environment (On Linux)
MYSQL_DATABASE=tamnza
MYSQL_ROOT_HOST=localhost
MYSQL_USERNAME=root
MYSQL_PASSWORD=secret
Finally, run the development server:
php -S 127.0.0.1:8000
The 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.