Skip to content

sergikhizanishvili/quote-quizz-backend

Repository files navigation

Quote Quizz

Web application backend representing the famous quote quiz where the user will have to pick a correct answer to the asked questions.

About this Project

This project represents backend of the specified web application and it's based on Laravel 9

Requirements

Installation guide

First thing to do after pulling the project - run following command to install dependencies:

composer install

Next - rename .env.example file to .env and update several environment variables:

DB_HOST
DB_PORT
DB_DATABASE
DB_USERNAME
DB_PASSWORD

Migrations

Run migrations to migrate all the database tables

php artisan migrate

Public Directory

After installing the project, you should configure web server's document / web root to be the public directory of the project. Rr you can run following command:

php artisan serve --port=8080 

Admin user

In order to create admin user you have to run tinker command first to open Psy Shell:

php artisan tinker

After shell is open - run following commands one by one (Dont't forget to replace credentials):

$user = new App\Models\User();
$user->password = Hash::make('the-password-of-choice');
$user->email = '[email protected]';
$user->name = 'User name';
$user->save();
exit

All done.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published