This is the backend of the quiz application. It is a RESTful API that provides the following services:
- User management
- Quiz management
- Question management
- Answer management
- Result management
- Session management
- Authentication
- Authorization
- Registration
- Error handling
PHP 8.0.0 or higher, MariaDB 15.1 and Composer 2.2.6 are required to run this application. MANDATORY: You need to run application http://127.0.0.1:8000 Frontend is hardcoded on this address. On 127.0.0.1:8000 You can find Request docs.
-
Clone the repository:
git clone git@github.com:nodarchik/Quiz-Back.git
-
Navigate to the project directory:
cd Quiz-Back -
Install the dependencies:
composer install
-
Copy the
.env.examplefile to.env:cp .env.example .env
-
Generate an application key:
php artisan key:generate
-
Import the database dump:
mysql -u root -p laravel -h 127.0.0.1 -P 3306 < dump.sql -
Run the database migrations:
php artisan migrate
-
Start the Laravel development server:
php artisan serve
Please note that you need to have Composer and PHP installed on your machine to run these commands.
Also, make sure to set up your .env file with the correct database connection details before running the migrations.