amazon-clone Tailwind Templates

Amazon Clone

an Amazon.com clone made using Laravel, Vue.js, vue-material-design-icons, vue3-carousel, Tailwind CSS, StripeAPI, and Inertia.js.

Amazon-Clone

Installation

  1. Download the code by clicking Code, Download ZIP. Or if you have Git install in your machine, you can run this in your terminal.
git clone https://github.com/devmuhammadzaki/amazon-clone.git
  1. Change directory to your local copy of amazon-clone in your terminal. Then install composer dependencies.
composer install
  1. Install frontend dependencies.
npm install
  1. Copy .env file from .env.example. In NIX machine you can use this command.
cp .env.example .env
  1. Prepare a database. You can use this command.
mysql -uroot -e "CREATE DATABASE amazon-clone_db"

If you have password for your database, you need to specify -p on the command.

  1. Configure your database and email sender settings in .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}"
  1. Migrate database tables and seed them with fake data
php artisan migrate --seed
  1. Generate a key for you application
php artisan key:generate
  1. Now go to https://stripe.com/en-gb-us and Create a public and a private KEY.
Add your new PRIVATE API KEY to CheckoutController.php and Checkout.vue
  1. Run php development server
php artisan serve
  1. Run node.js development server (alongside php server)
npm run dev

Your local copy of amazon-clone is ready to access in your browser ;)

Top categories

Loading Svelte Themes