Skip to content

Latest commit

 

History

History
84 lines (60 loc) · 2.83 KB

readme.md

File metadata and controls

84 lines (60 loc) · 2.83 KB

Deployment notes

  1. cp .env.example .env
  2. 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=
  1. docker-compose up -d
  2. docker-compose exec fpm sh
    $ cd /var/www
    $ php artisan key:generate
    $ php artisan migrate --seed
  3. login with default admin and password

Configurations

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

LaraQuiz: Laravel 5.6 based quiz system

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.

Clickable live-demo

demo-laraquiz.quickadminpanel.com

LaraQuiz screenshot

LaraQuiz screenshot 2

How to use

Using Docker

Without Docker

  • 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!

License

Basically, feel free to use and re-use any way you want.


More from our LaravelDaily Team