Laravel ecommerce site with Products, Categories, Orders, PDF Invoice, Stripe payments, separate user & admin panel
cd /opt/lampp/htdocs
git clone https://github.com/ashraf-kabir/ecom-laravel.git
cd chmod -R 777 ecom-laravel
cd ecom-laravel
code .
Create .env file & add below stripe variables
STRIPE_PUBLISHABLE_KEY=YOUR_STRIPE_PUBLISHABLE_KEY
STRIPE_SECRET_KEY=YOUR_STRIPE_SECRET_KEY
Run the project when inside ecom-laravel dir
php artisan serve
Create a database on mysql using php phpmyadmin & set below variables on .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DATABASE_NAME
DB_USERNAME=root
DB_PASSWORD=
If you don’t have any mysql login password, keep the DB_PASSWORD blank.
run the below command to migrate & seed. Check the databaseseeder for more clarification.
php artisan migrate:refresh --seed
open the project url http://127.0.0.1:8000