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
shopfolder to thehtdocsfolder
-
Start Apache and MySQL in XAMPP:
- Open XAMPP and click on the "Start" button for Apache and MySQL
-
Import Database:
- Open
phpmyadminin your browser by going tohttp://localhost/phpmyadmin - Create a new database called
data - Click on the
datadatabase and then click on theImporttab - Import the
data.sqlfile into thedatadatabase
- Open
-
Get Google OAuth Credentials:
- Go to the Google Cloud Console
- Create a new project
- Go to the
Credentialstab and create a newOAuth 2.0 Client ID - Add
http://localhost/shop/login.phpas authorized redirect URIs - Copy the
Client IDandClient Secretand paste them in theconfig.phpfile
-
Get Razorpay API Credentials:
- Go to the Razorpay Dashboard
- Go to the
Settingstab and click onAPI Keys - Copy the
Key IDand paste them in theconfig.phpfile
-
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.