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.
- 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
- Laravel 11
- LiveWire 3
- maryUI 1.25
- openai-php/laravel 0.8.1
- Clone the repository
- Run
composer install
- Run
npm install
- Run
npm run dev
- Create a new database
- Run
php artisan migrate
- Copy the
.env.example
file to.env
- Update the
.env
file with your database credentials - Update the
OPENAI_API_KEY
in the.env
file with your OpenAI API key - Update the
OPENAI_API_SECRET
in the.env
file with your OpenAI API secret - Run the queue worker
php artisan queue:work
(images are created on the queue) - Enjoy!