Skip to content

Latest commit

 

History

History
50 lines (25 loc) · 1.18 KB

README.md

File metadata and controls

50 lines (25 loc) · 1.18 KB

PHP with Laravel

This project is a simple example about how to use Laravel with a different approach in the authentication workflow.

Preconditions

  1. Install LAMP stack

  2. Install Lavarel

  3. Install phpunit

  4. Run the command: sudo nano /etc/apache2/mods-enabled/dir.conf

    Include index.php to the list Save the file

  5. Download the folder [public_news]

Creating and initialing the database

Restore the database backup

  1. Login in the MySQl, run the command: mysql -u root -p[password]

  2. Create the database, run the command: create database public_news; exit;

  3. Restore the database: run the command: mysql -u root -p[password] public_news < [Your Folder]/Source/backup.sql

  4. Login in the MySQl, run the command: mysql -u root -p[password]

  5. run the command: CREATE USER 'user_connection'@'localhost' IDENTIFIED BY '$eguro01';

  6. run the command: GRANT ALL ON public_news.* TO 'user_connection'@'localhost';

Preparing the source code

  1. run the command: cd /var/www/html

  2. copy [Your Folder]/Source/public_news to /var/www/html

  3. Run the commands: cd /var/www/html/public_news php artisan serve

  4. Open the application http://localhost:port/