This PHP-based E-Commerce website, created by Pritish Purav, integrates Razorpay for payments and Google Auth for user authentication. The application uses a MySQL database to store user and product information.
-
User Authentication
- Login with Google Auth
- Secure user authentication and authorization
-
Shopping Cart
- Add, update, and remove items
- View total cost of items
-
Checkout
- Enter shipping details
- Review and confirm the order
-
Payment Integration
- Razorpay payment gateway
- Support for multiple payment options
-
Install XAMPP Server:
- Download and install XAMPP from here
-
Clone the repository:
git clone https://github.com/pritishpurav/e-commerce-website.git
-
Move shop folder to htdocs folder in XAMPP:
- Open XAMPP and click on the "Explorer" button in the Left Column
- Move the
shop
folder to thehtdocs
folder
-
Start Apache and MySQL in XAMPP:
- Open XAMPP and click on the "Start" button for Apache and MySQL
-
Import Database:
- Open
phpmyadmin
in your browser by going tohttp://localhost/phpmyadmin
- Create a new database called
data
- Click on the
data
database and then click on theImport
tab - Import the
data.sql
file into thedata
database
- Open
-
Get Google OAuth Credentials:
- Go to the Google Cloud Console
- Create a new project
- Go to the
Credentials
tab and create a newOAuth 2.0 Client ID
- Add
http://localhost/shop/login.php
as authorized redirect URIs - Copy the
Client ID
andClient Secret
and paste them in theconfig.php
file
-
Get Razorpay API Credentials:
- Go to the Razorpay Dashboard
- Go to the
Settings
tab and click onAPI Keys
- Copy the
Key ID
and paste them in theconfig.php
file
-
Run the application:
- Open your browser and go to
http://localhost/shop/
- Open your browser and go to
Contributions are welcome! Open issues or pull requests for enhancements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.