Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wurstbroteater/jquiz
Backend and frontend for performing quizzes related to Java written in python.
https://github.com/wurstbroteater/jquiz
django-application java python quiz
Last synced: 28 days ago
JSON representation
Backend and frontend for performing quizzes related to Java written in python.
- Host: GitHub
- URL: https://github.com/wurstbroteater/jquiz
- Owner: wurstbroteater
- Created: 2024-07-01T19:28:39.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-01T17:44:39.000Z (3 months ago)
- Last Synced: 2024-09-28T16:23:29.124Z (about 1 month ago)
- Topics: django-application, java, python, quiz
- Language: Python
- Homepage:
- Size: 112 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
Awesome Lists containing this project
README
# JQuiz v0.1
JQuiz is a web platform where users can answer multiple-choice questions related to Java in a competitive manner.
## Requirements
- Python 3.10.12 or later
## Installation
You might want to consider using `venv`.
```shell
pip install -r /path/to/requirements.txt
python manage.py makemigrations quiz && python manage.py migrate
python manage.py createsuperuser
python manage.py import_quiz /path/to/quiz.json
```## JSON Format
The format of the JSON file (`quiz.json`) is still in development. Therefore, the following sample might not be up-to-date.
```json
[
{
"name": "Chapter 0",
"questions": [
{
"q_id": 1,
"question": "1. The answer to what?",
"text_snippets": "arthur.properties\r\nguide=Ford",
"code_snippets": [
"42: final \u2423\u2423\u2423 x = dT.negate();",
"System.out.println(\"Don't Panic\");"
],
"answers": [
{
"is_correct": true,
"A": " Answer"
},
{
"is_correct": false,
"B": " The Universe!"
},
{
"is_correct": true,
"C": " Answer"
},
{
"is_correct": false,
"D": " Comparator"
}
],
"solution_text": "A, C. A is correct because 42 and C is correct because 42."
}
]
}
]
```## Examples
### Quiz Exporting
The following snippets shows how to export the quiz Chapter0 from database to JSON.
``` shell
python manage.py export_quiz "Chapter 0"
```