case study
This is Laravel app. see Laravel doc for details.
- developed with PHP 7.4 in mind
- see Laravel requirments
-
Clone app repo:
git clone https://github.com/windigo00/small_shop.git -
Create database and db user or use existing.
CREATE DATABASE 'small_shop';CREATE USER 'small_shop'@'localhost' IDENTIFIED BY 'user_password';GRANT ALL PRIVILEGES ON small_shop.* TO 'small_shop'@'localhost';FLUSH PRIVILEGES; -
Copy template config file
.env.exampleinto.env. -
Update
.envconfiguration. ChieflyDB_*for database connection. Use db name and credentials from db setup step. (see Laravel env setup for more) -
Install vendor packages with composer
composer install -
Generate security key
php artisan key:generate -
Run migrations (creates db tables)
php artisan migrate -
Form more information on Laravel
artisan, please visit Laravel doc
npm run initialize