A modern eCommerce website developed by three students from University of Bundelkhand, Jhansi.
- Modern Design: Clean and responsive layout using HTML and CSS.
- Product Grid View: Display products with images, names, and prices.
- Dynamic Cart: Add products to cart with live total updates.
- Secure Payments: Integrated Stripe for processing payments.
- Session Management: Secure user authentication and session handling.
- Local Server Optimization: Easy to deploy using XAMPP.
-
Clone the repository
git clone https://github.com/yourusername/ecommerce-website.git
-
Move to the project directory
cd ecommerce-website -
Move the project to the local server directory (e.g., XAMPP's htdocs)
mv ecommerce-website /path-to-xampp/htdocs/
-
Start the local server (e.g., XAMPP)
-
Create database users and products table as of now, cart and orders table will be added afterwards... use this query for user table this will make your database to store user login credentials
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
email VARCHAR(100) NOT NULL UNIQUE
);
- Access the site
Open your web browser and navigate to:
http://localhost/ecommerce-website/index.php
-
Set up your Stripe account: Go to the Stripe website and sign up for an account.
-
Get API keys: Obtain your publishable and secret keys from the Stripe Dashboard.
-
Configure API keys: Add your Stripe API keys to your configuration file or environment variables.
-
Create a database: Set up a MySQL database using phpMyAdmin or command line.
-
Import the database schema: Import the provided SQL file to set up the necessary tables.
-
Configure database connection: Update the
functions.phpfile with your database credentials.
- Add Products: Modify the
products.jsonfile to add or update product details, including images, names, and prices. - Manage Cart: Users can add products to their cart and view the total amount dynamically.
- Checkout: Use the integrated Stripe payment gateway to handle transactions.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature-branch) - Create a new Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or issues, please contact Shantanu Yadav.
.png)