Lara-ecommerce
This is a simple E-commerce application developed on Laravel 5.7 framework.
Features
- Mail verified login registration with Github and Facebook OAuth2
- Any user can see the active products and logged in user can add products to cart
- User can only see the history of his/her own orders, other orders are restricted
- Mail notification for every successful checkout
- Factory and Seeder used to generate dummy data for testing purpose
- Eloquent model relationship, Eager loading used for adding and retrieving data
Installation
Clone GitHub repo for this project locally
git clone https://github.com/utshab-roy/lara-ecommerce.git1cd into your project
cd lara-ecommerce1Create a copy of your .env file
cp .env.example .env1This will create a copy of the .env.example file in your project and name the copy simply .env.
Install Composer Dependencies
composer install1Install NPM Dependencies
npm install1Or you can use
yarn install1Generate an app encryption key
php artisan key:generate1If you check the .env file again, you will see that it now has a long random string of characters in the
APP_KEYfield. We now have a valid app encryption key.Create an empty database for our application
In the .env file, add database information to allow Laravel to connect to the database
In the .env file fill in the
DB_HOST,DB_PORT,DB_DATABASE,DB_USERNAME, andDB_PASSWORDoptions to match the credentials of the database you just created. This will allow us to run migrations and seed the database in the next step.In order to use the mail smtp protocol for the test, change the
MAIL_HOST,MAIL_PORT,MAIL_USERNAME,MAIL_PASSWORDcredentials according to your setup.For OAuth2 for Github login include
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETand define the callback url properly.Migrate the database
php artisan migrate1It’s not a bad idea to check your database to make sure everything migrated the way you expected.
[Optional]: Seed the database
php artisan db:seed1
The default password for any the users is 121212
Now you are ready to use the Application
Development
Want to contribute? Great!
If you find any bug or want ot improve it just fork on the git project and it will create a pull request I will accept it. Git Repo of this project
You can mail me if required.
Email address: utshab.roy@gmail.com
Find Me on social media
Todos
- Comment section add for the post
- Logged in user can only edit his/her own posts
- Multiple images upload at the same time
License
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
Free Software, Hell Yeah!