Skip to content

Laravel Protype: Content Management System for restaurant

License

Notifications You must be signed in to change notification settings

Daniel-Haidar/Amaterasu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About Amaterasu

This Laravel project is a prototoype Content Management System (CMS) for a made up restaurant.

Setup

1 - Create a New MySQL User

You first need to create a user for the MySQL database.

Open up CMD and sign in to MySQL as the root account

mysql -u root -p

Create a user and password to be used, the default username is admin and the default password is password To change it, change the .env file, search for the lines that say DB_USERNAME=admin and DB_PASSWORD=password

CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';

Grant Privileges to the new account

GRANT ALL PRIVILEGES ON * . * TO 'admin'@'localhost';
FLUSH PRIVILEGES;

Exit MySQL

exit;

2 - Create Database

The default database for this project is amaterasu and can be changed in the env at the lib DB_DATABASE=amaterasu

Sign in to the MySQL user you're using

mysql -u admin -p

Input password

password

Create the database

CREATE DATABASE amaterasu;

3 - Seed the Database

In cmd navigate to the project folder that contains the file artisan

cd Amaterasu

Commit the migrations to the database

php artisan migrate:refresh --seed

Make a symbolic link in the "Amaterasu/public" folder linking to "Amaterasu\storage\app\public" This is required since any newly added images are added in storage, and this allows them to be accessed as assets

php artisan storage:link

4- Start the Server

php artisan serve