https://github.com/devmuhammadzaki/amazon-clone
an Amazon.com clone made using Laravel, Vue.js, vue-material-design-icons, vue3-carousel, Tailwind CSS, StripeAPI, and Inertia.js.
https://github.com/devmuhammadzaki/amazon-clone
inertia laravel php stripe-api tailwind-css vue
Last synced: about 2 months ago
JSON representation
an Amazon.com clone made using Laravel, Vue.js, vue-material-design-icons, vue3-carousel, Tailwind CSS, StripeAPI, and Inertia.js.
- Host: GitHub
- URL: https://github.com/devmuhammadzaki/amazon-clone
- Owner: devmuhammadzaki
- Created: 2024-09-12T22:11:25.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-28T21:06:03.000Z (8 months ago)
- Last Synced: 2025-02-11T08:48:59.982Z (4 months ago)
- Topics: inertia, laravel, php, stripe-api, tailwind-css, vue
- Language: PHP
- Homepage:
- Size: 4.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```2. Change directory to your local copy of `amazon-clone` in your terminal. Then install composer dependencies.
```
composer install
```3. Install frontend dependencies.
```
npm install
```4. Copy `.env` file from `.env.example`. In NIX machine you can use this command.
```
cp .env.example .env
```5. 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.
6. 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}"
```7. Migrate database tables and seed them with fake data
```
php artisan migrate --seed
```8. Generate a key for you application
```
php artisan key:generate
```9. 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
```10. Run php development server
```
php artisan serve
```11. Run node.js development server (alongside php server)
```
npm run dev
```Your local copy of amazon-clone is ready to access in your browser ;)