Freshmart is an E-Commerce web application built using PHP, MySQL, CSS, and JavaScript. It provides a platform for users to shop for items like fresh vegetables, fruits, meats, and groceries, manage their shopping carts, and securely check out.
- Authentication: Secure modern Registration and Login system.
- Product Browsing: Explore products across various categories (Vegetables, Fruits, Meats, Frozen).
- Shopping Cart: Add, remove, and manage items in the cart securely.
- Secure Checkout: Integrated payment gateway (Razorpay) for smooth transactions.
- Payment Verification: End-to-end payment status handling.
- Admin Dashboard: Top-level overview of sales, total products, and user statistics.
- Product Management: Add, update, and remove products from the catalog.
- Order Management: View and update the status of customer orders.
- User Management: Oversee registered users on the platform.
- Frontend: HTML5, CSS3, JavaScript, jQuery
- Backend: Core PHP
- Database: MySQL
- Payment Gateway: Razorpay API
public/: Contains user-facing pages, shop endpoints, checkout, and assets.admin/: Administrator routes and control panel logic.config/: Database connections and payment API configurations.includes/: Reusable components such as headers, footers, and authentication checks.
- Clone the repository:
git clone https://github.com/vishal2133/Freshmart.git
- Local Environment setup:
Move the project folder to
htdocs(for XAMPP) or your local web server's root directory. - Database Configuration:
- Create a database in MySQL (e.g.,
freshmart). - Import the respective
.sqlschema if available. - Update your database credentials inside
config/database.php.
- Create a database in MySQL (e.g.,
- API Configuration:
- Add your test Razorpay keys inside
config/razorpay.php.
- Add your test Razorpay keys inside
- Start:
Navigate in your browser to
http://localhost/Freshmart/public
This project is open-source and available under the MIT License.