0% found this document useful (0 votes)
16 views

db_report[1] (2)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

db_report[1] (2)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Abstract

The "Farm Trade System" is a dynamic web-based platform designed to


support farmers by offering a centralized hub for agricultural information and
services. This system promotes collaborative knowledge sharing, enabling
farmers to exchange best practices in farming techniques, thereby improving
productivity and profitability. Additionally, it serves as an online marketplace,
allowing
farmers to sell their produce directly while providing them access to essential
agricultural products such as tools and seeds from various sellers.

The application incorporates robust user management features, enabling


farmers to register, update, view, and manage their profiles seamlessly. Buyers
can explore and purchase agricultural products with ease, supported by
features for sending purchase requests and addressing quality-related
concerns through integrated email communication. By fostering direct
interactions
between farmers and buyers, the system aims to enhance the efficiency of
agricultural trade and ensure better access to critical farming resources,
contributing to a more sustainable and connected agricultural ecosystem.
Acknowledgment

We would like to express our heartfelt gratitude to Dr. Deepak Raskar, our esteemed
mentor and guide, for his invaluable support, encouragement, and guidance throughout the
development of our mini-project, Farm Trade System. His expert insights and constructive
feedback have been instrumental in shaping this project and enhancing our learning
experience.
We also extend our gratitude to Amity University Mumbai for providing us with the
resources and a conducive environment to undertake this project.
A special thanks to my project partner, Jahnvi Srivastava, for her collaboration, dedication,
and contributions, which made this project a truly enriching experience.
We are deeply grateful for the technological tools that facilitated our development
process, including GitHub for version control and collaborative coding, Google for its
comprehensive resources and documentation, ChatGPT for providing insightful guidance,
Visual Studio
Code (VS Code) for its efficient code editing features, and XAMPP for offering a reliable
local server environment.
Finally, we acknowledge and appreciate the support and encouragement of my senior,
family and friends, without whom this project would not have been possible.

Thank you.
Sincerely,
Khurram Rashid
INDEX
Sr. no. Chapter Name Page No.

1 Introduction 1
1.1OBJECTIVES
1.2LIMITATIONS
2 STUDY OF EXISTING SYSTEM 2
2.1Case Study
2.2Proposed System
3 DATABASE DESIGN 3–9
3.1Software & Hardware Requirements
Specification
3.2CONCEPTUAL DESIGN(E-R & Schema Diagram

3.3 Implementation

3.3.1 Back End: MySQL

3.3.2 SQL Triggers Example:


3.3.3 Back End: Python with MySQL
3.3.4 Front End
4 Screenshots of Project/Prototype 10 – 12
5 Conclusion 13
5.1 Future Enhancements
5.2 References
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
CHAPTER-1

INTRODUCTION
1.1 Objectives:
•To design and develop a user-friendly system.
•To create an efficient computerized system that eliminates data redundancy.
•To study the functioning of the Farm Trade System.
•To build a fast, accurate, and flexible system with a good user interface.
•To ensure the system can be used for a long time without errors
and minimal maintenance.
•To provide a synchronized and centralized database for farmers and sellers.
•To save time and money through computerization.
•To provide a better Graphical User Interface (GUI).
•To reduce chances of information leakage.
•To enhance data security using login and password mechanisms.
•To enable immediate storage and retrieval of data and information.
•To improve coordination among farmers.
•To reduce overall losses.

1.2 Limitations:

•Small size of farm businesses due to fragmentation and


subdivision of holdings.
•Limited labor per unit area, especially for large-scale
mechanized farming.
•Mechanization is more effective in large, flat areas
compared to small fragmented farms

1
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
CHAPTER 2:

STUDY EXISTING SYSTEM


2.1 Case Study
SourceTrace collaborated with the Small Farmers Agri-business Consortium
(SFACH) and the Karnataka Horticulture Department to deploy innovative digital
solutions to empower horticulture farmers. Leveraging a combination of
advanced technologies like HTML, CSS,
JavaScript, Python-Flask, and MySQL, the team designed and implemented a robust and
efficient system to manage Farmer Producer Organizations (FPOs). This system
focuses on streamlining agricultural processes, enhancing operational efficiency,
and eliminating errors through automation and data management. It is built to
adapt to evolving technological trends, making it both efficient and future-proof.
By addressing the unique needs of FPOs, the system ensures scalability,
reliability, and enhanced decision-making capabilities, ultimately improving the
lives of farmers and fostering sustainable agricultural practices.
2.2 Proposed System
The proposed Farm Trade System aims to revolutionize the agricultural
marketplace by providing a user-friendly digital platform that facilitates
seamless trade between farmers and customers. Farmers can list their produce
for sale online, while buyers can easily browse and purchase products, ensuring
a broader reach for agricultural goods. A unique feature of this system allows
buyers to request quality checks, promoting transparency and trust in
transactions.
The system is designed to support two distinct user roles:
1. Farmers:
o Secure login to manage accounts.
o Upload detailed product listings, including images, descriptions, and prices.
o Track orders and sales history for better financial management.
2. Customers:
o Secure login for personalized access.
o Browse and search for available products by categories or keywords.
o Place orders, request quality checks, and provide feedback for
continuous improvement.
To ensure secure access, the platform employs robust authentication
mechanisms using login credentials. The system is equipped with an intuitive
interface, where users can
effortlessly navigate sections such as product listings, orders, and support.
These features not only boost profitability for farmers by eliminating
intermediaries but also enable customers to access fresh and quality produce
directly from the source.
By integrating modern web technologies and a scalable backend
architecture, the Farm Trade System is built to adapt to future
enhancements, ensuring it remains relevant and impactful.

2
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM

CHAPTER 3: DATABASE DESIGN


3.1 Software & Hardware Requirements Specification
3.1.1 Software Requirements:

•Frontend: HTML, CSS, JavaScript, Bootstrap.


•Backend: Python Flask (Python 3.7), SQLAlchemy.
•Operating System: Windows 10 or above.
•Browser: Google Chrome/Internet Explorer.
•Development Tools: XAMPP (Version-3.7), PyCharm
Community, Sublime Text 3.

3.1.2 Hardware Requirements:

•Computer with a 1.1 GHz or faster processor.


•Minimum 2GB of RAM.
•2.5 GB of available hard-disk space.
•5400 RPM hard drive.
•1366 × 768 or higher-resolution display.
•DVD-ROM drive.

3
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
3.2 CONCEPTUAL DESIGN
3.2.1 E-R DIAGRAM

sd
id

trig trigers
1

action limestamp

username email

pid
pr

AddAgroProducts

productdesc productname

username
fid
n Can insert

Farming
user

m farmingtype
password
email

aadharnumber
rid

address
Can add farmername
Register
farming

gender
age
phonenumber

4
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
3.2.2 SCHEMA DIAGRAM:

USER

Usernam emai passwor


e l d

REGISTER

ri farmername adharrnumber gender phonenumber address


d age farming

FARMING

fi farmingty
d pe

ADDAGROPRODUCTS

pid username email productdesc productname

TRIG

rid id action timestamp

5
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
The backend is built using MySQL, a reliable Database
Management System (DBMS) that handles large structured
datasets efficiently. Python is used for scripting and Flask for
the web framework. MySQL ensures
data security, prevents unauthorized access, and maintains
data integrity through features like ACID compliance, unique
indexing, and triggers for updates, insertions, and deletions.
Flask, a lightweight and flexible web framework, simplifies the
integration of backend functionality with the frontend.

3. 3 Implementation
The system employs Python for backend development, MySQL for
database management, and Flask as the web framework. It
comprises modules for user authentication, crop and product
management, and secure database operations. The frontend,
developed using HTML,
CSS, and JavaScript, is enhanced with Bootstrap for responsive
design and compatibility across devices.

3.3.1 Back End: MySQL


The MySQL database is structured to store and manage farmer
profiles, crop details, product inventory, and transaction data.
Key features include:
1. SQL: Structured Query Language (SQL) is used for
precise and efficient database interactions.
2. Stored Procedures: These facilitate efficient data
processing by encapsulating complex SQL logic within
reusable procedures.
3. Triggers: Automated database actions are implemented
to ensure consistency and track changes. Triggers
execute specific tasks upon database events, such as
insertions, updates, or deletions.
3.3.2 SQL Triggers Example:
 Trigger Name: on_insert
o Table: register
o Event: INSERT
6
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
o Definition: INSERT INTO trig VALUES (NULL,
NEW.rid, 'Farmer Inserted', NOW());
 Trigger Name: on_delete
o Table: register
o Event: DELETE
o Definition: INSERT INTO trig VALUES (NULL,
OLD.rid, 'Farmer Deleted', NOW());
 Trigger Name: on_update
o Table: register
o Event: UPDATE
o Definition: INSERT INTO trig VALUES (NULL,
NEW.rid, 'Farmer Updated', NOW());
These triggers maintain a log of operations, which can be
helpful for audit trails and debugging.
4. Indexes: Unique indexes are employed to ensure data
integrity and improve query performance.
5. Scalability: The database schema is designed for
scalability, enabling the addition of new features like
analytics or enhanced reporting without significant
redesign.

3.3.3 Back End: Python with MySQL


The backend uses Python to manage business logic, handle
requests, and process data. It incorporates the following
technologies:
1. Flask: Provides routing, templating, and integration
with the MySQL database.
2. Flask-MySQL and SQLAlchemy: Libraries are used to
interact with the database efficiently. SQLAlchemy's
ORM capabilities simplify complex SQL queries and
enable seamless integration between Python objects
and database tables.
3. Key Features:

7
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
o CRUD Operations: Create, Read, Update, and
Delete operations are implemented to manage
database entities.
o User Authentication: Includes secure login,
session management, and role-based access
control.
o Validation and Error Handling: Validates user
inputs to prevent SQL injection and other
vulnerabilities.

3.3.4 Front End


The frontend is designed to provide a user-friendly and
intuitive interface. Key technologies and features include:
1. HTML, CSS, and JavaScript: Standard web technologies
are used for structure, styling, and interactivity.
2. Bootstrap: Enables responsive design, ensuring
compatibility with different screen sizes and devices.
3. Dynamic Features: JavaScript enhances user experience
with real-time updates, form validation, and dynamic
page interactions.
4. Static Files: Includes well-organized stylesheets,
JavaScript libraries, and multimedia assets.
5. AJAX: Used for asynchronous communication
between the frontend and backend, allowing for
smooth and fast user
interactions.

Additional Features (To Improve)


1. Security:
o Password Hashing: Implements strong hashing
algorithms (e.g., bcrypt) to store user passwords
securely.
o Data Encryption: Sensitive information is encrypted
during transmission to prevent unauthorized
access.

8
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
2. Scalability:
o The modular design of both the backend and
frontend allows easy addition of new functionalities.

9
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
o The database schema supports future expansions,
such as analytics dashboards or advanced
reporting.
3. Error Monitoring and Logging:
o Logs are maintained for debugging and
monitoring application health.
o Flask’s built-in debugging tools aid developers
during development.
This architecture is robust, ensuring high performance,
security, and scalability for agricultural and related
applications.

1
0
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
4- ScreenShots

10
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM

11
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM

12
DBMS MINI PROJECT
FARM TRADE 2024-25
SYSTEM
5 . Conclusion
The Farm Management System effectively bridges the gap between
technology and agriculture, offering a streamlined approach to managing
farm operations. By simplifying complex tasks, enhancing productivity,
and enabling data-driven decision- making, it serves as a vital tool for
fostering digital transformation in the agricultural sector.

Future Enhancements
1. Integration with IoT Devices: Incorporating Internet of Things (IoT)
devices for real-time monitoring of soil health, weather conditions,
and equipment performance.
2. Advanced Analytics: Leveraging predictive analytics and machine
learning to forecast crop yields, detect diseases early, and
optimize resource allocation.
3. Mobile Application Development: Creating a user-friendly mobile
app to ensure greater accessibility for farmers, even in remote
areas.
4. Multi-Language Support: Adding support for regional languages to
improve usability and accessibility for farmers in rural areas.

References
1. Official MySQL Documentation: Comprehensive reference for
database design and management.
2. Flask Framework Documentation: Detailed guide for developing
scalable and robust web applications.
3. Bootstrap Documentation: Resource for designing responsive and
visually appealing interfaces.
4. Agricultural Case Studies and Reports: Insights into real-world
applications and challenges in agriculture.
5. GitHub Open Source Resources: Repositories and tools for
accelerating project development.
6. ChatGPT: Assistance in ideation, troubleshooting, and
refining project concepts.
7. Google: Research and discovery of relevant tools, APIs, and best practices.

13

You might also like