- cp .env.example .env
- configure .env, database will be created according to the environment set on first creation
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=quiz
DB_USERNAME=
DB_PASSWORD=
- docker-compose up -d
- docker-compose exec fpm sh
$ cd /var/www
$ php artisan key:generate
$ php artisan migrate --seed - login with default admin and password
- Email: admin@admin.com
- Pass: password
Nginx: .docker/etc/nginx
SSL: .docker/etc/ssl
To use other certicates, please visit this folder and change certs, chained certs or other advanced configuration please refer to nginx folder.
FPM: .docker/etc/php
It is a demo project for demonstrating what can be generated with QuickAdminPanel tool. LaraQuiz was mostly generated with QuickAdmin except for some custom code.
It's an open-source version of online Laravel quiz at LaraQuiz.com - but the system can be used for any quiz project, you just fill in different topics and questions.
Notice: originally created with Laravel 5.3, it was upgraded to Laravel 5.6 in March 2018.
demo-laraquiz.quickadminpanel.com
- Email: admin@admin.com
- Pass: password
- Clone the repository with git clone
- Run make setup
- Access via http://localhost:8888
- Clone the repository with git clone
- Copy .env.example file to .env and edit database credentials there
- Run composer install
- Run php artisan key:generate
- Run php artisan migrate --seed (it has some seeded data for your testing)
- Now you can login as admin: launch the main URL and login with default credentials admin@admin.com - password
- Fill in the database with topics, questions and options
- For social login - fill in the credentials of your social apps in .env file
- That's it - allow people to register and take quizzes!
Basically, feel free to use and re-use any way you want.
- Check out our adminpanel generator QuickAdminPanel
- Read our Blog with Laravel Tutorials
- FREE E-book: 50 Laravel Quick Tips (and counting)
- Subscribe to our YouTube channel Laravel Business
- Enroll in our Laravel Online Courses