Skip to content

✨ An API helps you to host quizzes online. • Questions can be of any type (MCQ, Text) and can contain images as well as text. Also, you can get list of live, past and upcoming quizzes.

License

Notifications You must be signed in to change notification settings

nightwarriorftw/QuizApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quiz Api

Open Issues Forks Stars Maintained Made with Python Open Source Love Built with Love Follow Me Telegram

📒 Index

🔰 About

An API that helps you to host quizes online

  • Question can be of types - MCQ and open text
  • Question can have a text + image
  • User can see list of quizzes (both live and past and upcoming)
  • User can attempt quizzes

⚡ Usage

Register

Register

Add Auth Token

Token

Add Question

Add quiz

Host a quiz

Add id of questions in the questions list. Host quiz

Live Quiz List

Get the list of live quizes

Live quiz

Past Quiz List

Get the list of past quizes

Past quiz

Upcoming Quiz List

Get the list of upcoming quiz

Upcoming quiz

List of all the quizes

Get list of all the hosted quizes List of all quizes

Save score of the user

Save score

Get score of the user

Get score

Many more features

🔩 Development Environment

1. Clone the Repository

git clone https://github.com/nightwarriorftw/QuizApi.git
cd QuizApi

2. Install the virtual environment and activate it

python3 -m venv virtual
source ./virtual/bin/activate

3. Install the dependencies

pip install -r requirements.txt

4. Make migrations and run tests:

python manage.py makemigrations
python manage.py migrate

5. Run the project:

python manage.py runserver

📁 File Structure

├── accounts
│   ├── admin.py
│   ├── api
│   │   ├── serializers.py
│   │   ├── urls.py
│   │   └── views.py
│   ├── apps.py
│   ├── __init__.py
│   ├── models.py
│   ├── tests.py
│   └── views.py
├── db.sqlite3
├── manage.py
├── quiz
│   ├── asgi.py
│   ├── __init__.py
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
├── quizapp
│   ├── admin.py
│   ├── api
│   │   ├── __init__.py
│   │   ├── serializers.py
│   │   ├── urls.py
│   │   └── views.py
│   ├── apps.py
│   ├── __init__.py
│   ├── models.py
│   ├── tests.py
│   └── views.py
├── README.md
└── requirements.txt

🌟 Credits

Credit goes to the Author :-

🔒 License

LICENSE

About

✨ An API helps you to host quizzes online. • Questions can be of any type (MCQ, Text) and can contain images as well as text. Also, you can get list of live, past and upcoming quizzes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages