git clone https://github.com/devmuhammadzaki/amazon-clone.git
amazon-clone
in your terminal. Then install composer dependencies.composer install
npm install
.env
file from .env.example
. In NIX machine you can use this command.cp .env.example .env
mysql -uroot -e "CREATE DATABASE amazon-clone_db"
If you have password for your database, you need to specify -p
on the command.
.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=amazon-clone_db
DB_USERNAME=root
DB_PASSWORD=
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"
php artisan migrate --seed
php artisan key:generate
Add your new PRIVATE API KEY to CheckoutController.php and Checkout.vue
php artisan serve
npm run dev
Your local copy of amazon-clone is ready to access in your browser ;)