Farm2Home is a full-stack e-commerce platform designed to connect farmers directly with consumers, eliminating intermediaries in the sale of vegetables, fruits, and other farm products. This project aims to empower farmers by allowing them to list and manage their products independently while providing consumers with fresh, locally sourced produce.
- Browse a wide range of farm products
- Add items to cart, modify quantities, or remove items
- Secure checkout process
- Multiple payment options
- Provide feedback on purchases
- View order history and status
- Secure login system
- Personalized dashboard to manage products and orders
- Add, edit, or remove product listings
- Update delivery status for orders
- View earnings and sales statistics
- Frontend:
- HTML5
- CSS3
- JavaScript
- Bootstrap 4
- Backend:
- PHP
- Database:
- MySQL
- Version Control:
- Git
-
Clone the repository:
https://github.com/whitebeard10/farm2home.git
-
Set up a local server environment (e.g., XAMPP, WAMP, or MAMP).
-
Move the project files to your server's web directory.
-
Configure the database connection in
config.php
(see Database Setup). -
Import the provided SQL file to set up the database schema.
-
Start your local server and ensure MySQL is running.
-
Open a web browser and navigate to
http://localhost/farm2home
(adjust the URL if your local setup differs). -
For customer use, browse products, add to cart, and proceed to checkout.
-
For farmer access, use the login page with provided credentials to access the farmer dashboard.
-
Create a new MySQL database named
login_register
andcart_system
. -
Import the
login_register.sql
andcart_system.sql
files given in util folder into your newly created database. -
Update the
cartSystemAccess.php
andconfigure.php
file with your database credentials. -
You are good to go.
Contributions to Farm2Home are welcome and appreciated! Here's how you can contribute:
- Fork the repository
- Create your feature branch (
git checkout -b feature/YourFeature
) - Commit your changes (
git commit -m 'Add some YourFeature'
) - Push to the branch (
git push origin feature/YourFeature
) - Open a Pull Request
Please ensure your code adheres to the project's coding standards and include tests for new features when possible.
Farm2Home is open source software licensed under the MIT License. This means:
- You are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software.
- The software is provided "as is", without warranty of any kind, express or implied.
- In no event shall the authors be liable for any claim, damages or other liability arising from the use of the software.
For the full license text, please see the LICENSE file in the repository.
For more information or to report issues, please visit the project repository.