The Quiz App is a web application built with Laravel and Bootstrap that allows users to play quizzes by answering multiple-choice questions. The app provides an admin panel where the administrator can add questions and options for the quizzes.
- User registration and authentication
- Admin panel for managing quizzes
- Multiple-choice questions with 4 options each
- Bootstrap-based UI for a visually appealing design
- Score tracking
-
Clone the repository to your local machine:
git clone https://github.com/rahuldahal/quiz-app.git
-
Navigate into the project directory:
cd quiz-app
-
Install the project dependencies using Composer:
composer install
-
Create a copy of the
.env.example
file and rename it to.env
. Update the necessary environment variables such as database configuration. -
Generate a unique application key:
php artisan key:generate
-
Run the database migrations:
php artisan migrate
-
Optionally, seed the database with some initial data:
php artisan db:seed
-
Install the Node.js dependencies and compile the assets:
npm install && npm run dev
-
Start the development server:
php artisan serve
-
Access the app in your web browser by visiting
http://localhost:8000
.
- Register a new user account or log in with an existing account.
- As an admin, log in and access the admin panel.
- In the admin panel, you can add new questions and their corresponding options for the quizzes.
- Once the questions are added, users can play the quizzes by selecting the correct option for each question.
- After completing the quiz, the user's score is calculated and displayed.
- Admin can view scores of all the users.
- Laravel - PHP web framework
- Bootstrap - CSS framework for responsive design
- MySQL - Database management system
- Composer - Dependency manager for PHP
- Node.js - JavaScript runtime for asset compilation
- NPM - Package manager for Node.js
Contributions to the Quiz App are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on the GitHub repository.
The Quiz App is open-source software licensed under the MIT license.