Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Quiz Generator

⚠️ Deployment Note

This application was previously fully hosted and operational. Due to changes in OpenAI's free API policy, the live deployment has been taken offline. The app can still be reviewed and run locally, provided you supply your own API key.

🛠️ Tech Stack & Key Features

  • Backend - Django (using templates)
  • Database - Relational SQLite DB with ORM
  • Frontend - HTML, CSS, vanilla JS
  • Extended admin page with nested lists
  • OpenAI API to generate quizes
  • Asynchronous loading and saving of the highscore value (AJAX)

Generate

Generate a quiz based on form input values (topic, time limit, GPT temperature, amounts of questions and answers)

Generated quiz looks like this:

It's GPT 3.5 (text-davinci-003) so it bases on the training set which is already outdated (up to Jun 2021). If it won't know much about the topic it will make it up, thus I do not guarantee that the quizzes are in line with reality.

Beat the highscore

If you earn enough points, you can overwrite current highscore with your nickname (asynchronously - AJAX)

You can check the table of generated quizes, ordered by the score (highscores) to compare your results. Hover over the table header's name to see detailed description.

Admin page

Here you can see a list of all the generated quizes (or - potentially - generation requests which went wrong with the whole response text).

Screenshot from 2023-06-13 18-07-37

When you enter a single quiz from that list, you get more details.

You can see a nested list implemented here for better control and overview of questions and answers from the admin page. Screenshot from 2023-06-13 19-02-20

That's all folks. Go and solve a quiz now ;)

About

Quiz Generator - fill a form and solve a quiz with requested parameters (django + AJAX + GPTchat API)

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages