Simple Shopping application with generated products to display on Home page. Ordered the Product using single checkout page after Authentication and payment made using Stripe payment gatway.
- Laravel UI Bootstrap.
- Laravel default Authentication.
- Migrations for Product and Users.
- Product seeder.
- Laravel Cashier Integration with 'Stripe' payment.
-
Clone the project
git clone REPO_URL PROJECT_NAME
-
Go the Project URL
-
Install all the packages using composer
composer install
-
Install Node packages using NPM
npm install
-
Copy the example .env-example file to .env file and update the database credentials.
-
Create a new empty database and Stripe test account with developer mode.
-
In Stripe, generate the corresponding keys and update in .env file as below (You can specify CURRENCY as per your need)
STRIPE_KEY=publishable-key
STRIPE_SECRET=secret-key
CASHIER_CURRENCY=usd
-
Generate a new Laravel application key
php artisan key:generate
-
Run the database migrations using below
php artisan migrate
-
Run the database seeder for dummy products and user
php artisan db:seed
-
After running the above you can get the dummy user credentials ramfsp@gmail.com / test1234
-
Start the local development server
php artisan serve
-
Shop will be accessed by browser url: http://127.0.0.1:8000
-
You can able to access the checkout page after Logged in or Register yourself.