drajin / onlinetest
The Application represents small SPA quiz, with user and admin side
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- ext-pdo: *
This package is not auto-updated.
Last update: 2025-07-24 20:23:55 UTC
README
Table of contents
General info
This Application represents a quick quiz. On the user side it is single page application where the users are able to register and login, test their knowledge and check the results. On the Admin side, admins are able to login, and make CRUD operations on Users, Questions, Answers and Results. It was made for the learning purposes and out of enjoyment.
Features
User side:
- SPA application
- Login and Register
- Questions with 2 or more answers
- Questions with one or more possible correct answers
- Questions are being displayed on various ways
- Every question is displayed single
- Session flash messages
- Random generated order of answers
- Outcome view
- History of Results view
Admin side:
- Login
- CRUD on users
- CRUD on questions and answers
- CRUD on results
- Change the number of answers in a single question
- Change the layout of the question
- Change the number of correct answers
- Change the results from different views
- Session flash messages
Screenshots
Technologies
Application is created with:
- PHP Version 8.0.2
- JavaScript
- Bootstrap v5.1.3.
- Composer
Sources
Layout for the quiz questions and answers was inspired by the BBBootstrap - Code snippets:
https://bbbootstrap.com/snippets/bootstrap-4-simple-mcq-step-form-dark-mode-78032154
Setup
Installation
-
Download the archive or clone the project using git
git clone https://github.com/drajin/onlinetest
or install through composer:composer create-project drajin/onlinetest
-
Create database schema and give it a name of
onlinetest
-
Import database to phpMyAdmin (SQL file located in the
root/application/onlinetest.sql
-
cd onlinetest
-
Run
composer install
-
Start xampp or wamp server
-
Start php server by running command
php -S 127.0.0.1:8080
-
Open in browser http://127.0.0.1:8080
Usage
To access admin side of the application visit http://127.0.0.1:8080/admin
Use admin@onlinetest.com
as a username and admin
as a password to login.