Skip to content

JohannesCleve/ai-quiz

Repository files navigation

Alt text

AI Quiz

AI Quiz is a simple web application that allows users to create a quiz on any topic. It will then generate 5 random multiple choice questions based on that topic. It will also generate an image for the quiz card.

Features

  • Create a quiz on any topic
  • Generate 5 random multiple choice questions based on that topic
  • Generate an image for the quiz card
  • View statistics: amount of quizzes created, amount of questions created, total amount of points
  • View all quizzes
  • Archive/Unarchive a quiz
  • Remove a quiz
  • Reset the points of a quiz

Tech Stack

  • Laravel 11
  • LiveWire 3
  • maryUI 1.25
  • openai-php/laravel 0.8.1

Installation

  1. Clone the repository
  2. Run composer install
  3. Run npm install
  4. Run npm run dev
  5. Create a new database
  6. Run php artisan migrate
  7. Copy the .env.example file to .env
  8. Update the .env file with your database credentials
  9. Update the OPENAI_API_KEY in the .env file with your OpenAI API key
  10. Update the OPENAI_API_SECRET in the .env file with your OpenAI API secret
  11. Run the queue worker php artisan queue:work (images are created on the queue)
  12. Enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages