Open Terminal on Linux and run:
git clone https://github.com/LQTam/ttcn_laravel_vue.git
This is the server backend Laravel provide API for Frontend is VueJS to call.
cd ttcn_laravel_vue/client_serverTTCN1
cp .env.example .env
Open .env file and update these variables to fit to you.
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=ecommerce_db
DB_USERNAME=root
DB_PASSWORD=
Add your mailtrap info to testing mail
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
And Run
composer install
php artisan key:generate
php artisan jwt:secret
php artisan storage:link
Import tsport.sql file to your database. After that run php artisan serve
Run php artisan queue:work if you want to check mail after ordered.
This is the Frontend Written by VueJS connect to Laravel API.
cd ttcn_laravel_vue/vuetify
yarn
yarn serve
Customer Account: customer@gmail.com/customer@gmail.com
Admin Account: /admin