CRUD made with laravel for coding school final project
View Demo
·
Report Bug
This is a copy of my coding school final project.
To get a local copy up and running follow these steps.
-
Clone the repo
git clone https://github.com/gvisis/library-crud-laravel.git
-
In the root directory execute the following command to isntall Composer dependencies
composer install
-
Install NPM dependencies
npm install
-
Generate APP_KEY
php artisan key:generate
-
Create a local database with your selected name
exam_library
-
Create a copy of
.env.example
file and rename it to.env
In the .env file fill in the DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, and DB_PASSWORD options to match the credentials of the database you just created.
-
Migrate and seed the database
php artisan migrate:fresh --seed
If you prefer clean database, do not use the
--seed
option -
Start the laravel server
php artisan serve
-
If you seeded the databse use these credentials to login, othwerise make an new account.
Username: demo@demo.com Password: demodemo
** Authors, description and book titles are just random texts generated with php faker. **