Skip to content

Latest commit

 

History

History
271 lines (145 loc) · 7.31 KB

README.md

File metadata and controls

271 lines (145 loc) · 7.31 KB

image

HACKSPIRATION ' 24 Hackathon submission

Video Link:

Live Link

HarvestConnect

Connecting Farmers. Nourishing Communities.

Problem statement:

Consumers:

Difficulty accessing fresh, locally-grown produce at competitive prices. Limited transparency about farming practices and the origin of food.

Farmers:

Difficulty reaching new customers beyond local markets. Reliance on middlemen who take a significant cut of profits. Lack of control over product pricing and distribution.

Our Solution :

This farmer management system is a two-way platform that facilitates direct interaction and product purchase between consumers and farmers. It aims to minimize the market gap, ensuring fairer prices for farmers and fresher, locally sourced products for consumers.

HLD Diagram / MVC Architecture of Project:


                           +----------------------------+
                           |        User Interface      |
                           | (Web Browser, Mobile App)  |
                           +------------|---------------+
                                        |
                                        v
                           +------------|---------------+
                           |         API Gateway        |
                           |  (Flask Application)       |
                           +------------|---------------+
                                        |
                    +-------------------|-------------------+
                    |                   |                   |
                    v                   v                   v
          +---------|---------+ +-------|---------+ +-------|---------+
          | Product Management| | Order Management| |Resource Management|
          +---------|---------+ +-------|---------+ +-------|---------+
                    |                   |                   |
                    v                   v                   v
          +---------|---------+ +-------|---------+ +-------|---------+
          |Product Database   | |Order Database   | |Resource Database |
          | (PostgreSQL)      | | (PostgreSQL)    | | (PostgreSQL)     |
          +---------|---------+ +-------|---------+ +-------|---------+
                    |
                    v
          +---------|---------+
          |User Authentication|
          |Database (PostgreSQL)|
          +--------------------+

Features

User Management:

1.) User registration and login for both consumers and farmers.

2.) Secure user authentication.

3.) Role-based access control to restrict functionalities based on user type (consumer/farmer).

Farmer Management:

1.) Farmer registration with detailed profile creation (name, timestamp, contact information, etc.).

2.) Ability for administrators to add, edit, and manage farmer profiles.

Website will look like:

image


image


image


image


image


Screenshot 2024-04-18 225749


image


image


image


image


image

Installation:

Clone the repository:

https://github.com/Blacksujit/Farmer_management_system.git

Dependencies:

pip install flask
pip install flask-sqlalchemy
pip install  mysql-client
pip install flask-login
pip install -r requirements.txt

Database connection:

Download xamp server:

https://sourceforge.net/projects/xampp/

click on next next and install : (installation window will look like this )

image

open xampp server on yur pc :

open:

image

start the xamp server :(navigate to control panel)

image

start the server by clicking on start (as shown ):

image

go to the admin panel of mysql (as shown in image a new window will open)

image

php admin panel:

image

click on new (add or creat a database instance):

image

enter the database name ( specifically " farmers " ) shown in input box

image

import the database from the project: (As shown )

image

click on import or go according to yur admin panel (after choosing dtabase file from project ):

image


image

the database will become visible in the sidebar of your admin panel:

image

Now Navigate to project in your vs code:

in terminal hit the command

python wsgi.py

or run the code inside the file wsgi.py

the developement server will run on port:(according the server provided on yur vs code)

Running on http://127.0.0.1:3000

Tech Stack used:

Flask

html ,css, javascript, sass

python

SQL database

Team mates :(contributors)

1.) abhishek kute

2.) sanskar awati

3.) manas kotian

License:

MIT