- PHP Version: >= 7.2
- Open Terminal/CLI and clone source code.
$ git clone https://github.com/hoangvan149dhv/Ecomerce-Laravel.git
- Install composer: https://www.digitalocean.com/community/tutorials/how-to-install-composer-on-ubuntu-20-04-quickstart
$ composer install
- Install nodejs:
sudo apt install nodejs && sudo apt install npm
$ npm install
- Create new file
.env
and change
DB_CONNECTION = localhost (Apache2)/mysqli (Docker)
DB_HOST = 127.0.0.1/{your_host}
DB_DATABASE= {your_DB}
DB_USERNAME= {user_name_DB}
DB_PASSWORD= {your_pass_DB}
- Open
{Your_projecct}/database/backups/{year}/{month}/{day}/{file}.sql
and install
- {File_JS}:
{Your_project}/resources/js/{your_file.js}
- {File_SCSS}:
{Your_project}/resources/sass/{your_file.scss}
- Config css in
webpack.mix.js
:
mix.sass('{File_SCSS}','public/frontend/css/{your_file.css}')
- Config js in
webpack.mix.js
:
mix.js('{File_JS}','public/frontend/js/{your_file.js}')
- Run web pack:
npm run development
Email: [email protected]