AgroFarm is an online agriculture-based e-commerce platform where farmers can directly sell their agro products, and customers can buy fresh products with a click. The website is built using the Django framework.
- Project Overview
- Features
- Installation Instructions
- Usage
- Technologies Used
- Contribution Guidelines
- License
- Acknowledgements
AgroFarm is developed as a part of a semester project for the fifth semester. This platform bridges the gap between farmers and customers, enabling direct sales of fresh agro products. The platform offers a user-friendly interface for both farmers and customers, ensuring a seamless buying and selling experience.
- User Authentication: Secure login and registration for farmers and customers.
- Product Listings: Farmers can list their products with details and images.
- Shopping Cart: Customers can add products to the cart and proceed to checkout.
- Order Management: Farmers can manage orders received from customers.
- Admin Dashboard: Admin can oversee the entire platform, manage users, and products.
To set up this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/aashishChakradhar/agroFarm.git cd agroFarm
-
Create a virtual environment and activate it:
python -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py makemigtations merchant python manage.py migrate
-
Run the Development Server:
python manage.py runserver
-
Create a superuser (optional):
python manage.py createsuperuser
-
Start the application:
python manage.py runserver
-
Access the website: Open your browser and navigate to
http://localhost:8000
-
Superuser Details:
- Username: admin
- Password: admin
-
Register as a farmer or customer and start using the platform!
- Frontend: HTML, CSS, JavaScript, Bootstrap5
- Backend: Django
- Database: SQLite (default for Django, can be changed to PostgreSQL, MySQL, etc.)
- Version Control: Git
We welcome contributions from the community! To contribute, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
Please make sure to update tests as appropriate.
This project is licensed under the MIT License. See the LICENSE file for details.