Professional Documents
Culture Documents
Banke Bageshwori College: Tribhuvan University Institute of Science and Technology
Banke Bageshwori College: Tribhuvan University Institute of Science and Technology
Banke Bageshwori College: Tribhuvan University Institute of Science and Technology
Tribhuvan University
A PROJECT REPORT
ON
Submitted to:
Department of Computer Science and Information Technology
Banke Bageshwori College
Submitted by:
Balmiki Bhandari(11958/073)
Lautan Tharu (11966/073)
Shib Raj Nakal (11974/073)
Sushmita Shrestha (11981/073)
15 April, 2021
Banke Bageshwori College
Tribhuvan University
Supervisor’s Recommendation
I hereby recommend that this project report be prepared under my supervision by Ms.
Balmiki Bhandari, Mr. Lautan Tharu, Mr.Shiv Raj Nakal And Ms. Sushmita Shrestha
Entitled “Location Based Online Agriculture Market System” is satisfactory in the partial
fulfillment of the requirement for the degree of Bachelor of Science in Computer Science
and Information Technology and be processed for the evaluation.
ii
……………………
Mr.Khistiz Bhatt
Project Supervisor
Nepalgunj,Bank
Letter of Approval
This is to certify that the project was prepared by ………………………………………
Ms. Balmiki Bhandari, Mr. Lautan Tharu, Mr.Birendra Singh Saud
Mr.Shiv Raj Nakal And Ms. Sushmita Shrestha
Campus Chief
Entitled “Location Based Online Agriculture
Banke Bageshwori College
iii
Nepalgunj,Banke
Market System” in partial fulfillment of requirements for the degree of B.Sc. in Computer
Science and Information technology has been well studied. In our opinion it is satisfactory in
the scope and quality as a project for the required degree.
………………………………….
Mr.Khistiz Bhatt
Project Supervisior
Nepalgunj ,Banke
…………………………………… …………………………………..
Acknowledgement
It is a great pleasure to have the opportunity to extend our heartfelt gratitude to everyone who
helped us throughout the course of the project. We are profoundly grateful to our supervisor
Mr. Kshitiz Bhatt, for his expert guidance, continuous encouragement and ever willingness
to spare time from his otherwise busy schedule for the project’s progress reviews. His
continuous inspiration has made us complete this project and achieve its target.
We would also like to express our deepest appreciation to Mr. Birendra Singh Saud, Chief
of Banke Bageshwori College, Department of Computer Science and Information
Technology, for his constant motivation, support and for providing us with a suitable working
environment.
iv
At last our special thanks go to all staff members of B.Sc. CSIT department who directly and
indirectly extended their hands in making this project a success.
Abstract
The main objective of agriculture marketing system is to support marketing decision making
of the target users, especially farmers. Agriculture marketing system provides a transparent
open and trustworthy space for small holder farmers and buyers to negotiate fair prices deals
in the nearby location .Agriculture marketing system involve the planning, organizing,
directing and handling of agricultural produce in such a way as to satisfy farmers,
intermediaries and consumers. It helps the farmer to provide the customers most demand
products with the help of this project, it shows the customer the most repeated or demanded
products so that this project helps in recommendation for which products they must grow.
Keywords:Africulture
v
Table of contents
Chapter1:Introduction…………………………………………………....…………………..1
1.1Introduction……..………………………………………………………………………….1
1.2Problem Definition……………..………………………………………………………..1
1.2.1Solution………………………………………………………………………………….1
1.3 Objective………………………………………………………………………………..2
1.4Scope and Limitations…………….…………………………………………………....2
1.4.1 Scope…………………………………………………………………………………….2
1.4.2
Limitations……………………………………………………………………………….3
vi
1.5 Report Organization……………………………………………………………………...4
Chapter2: Requirement Analysis and Feasibility Analysis……………………………....5
2.1 Requirement Identification……………………………………………………………....5
2.1.1 Literature Review……………………………………………………………………..…5
2.2 Requirement Analysis………………………………………………………...…………5
2.2.1 Functional Requirements……………………………………………………………..5-6
2.2.2 Non-Functional Requirements…………………………………………………………..6
2.2.3 Use-case Diagram……………………………………………………….…...……7-8
2.3. Feasibility Analysis……………………………………………….…..……...…………9
2.3.1 Technical Feasibility………………………………………..……………..………….9
2.3.2. Operational Feasibility………………………………………………………………….9
2.3.3. Economic Feasibility……………………………………………………………………9
Chapter 3: System Design……………………………………………………………………10
3.1. Module…………………………………………………………..………………………10
3.1.1. Login Module………………………………………….………………………………10
3.1.2. Home Panel Module…………………………………………………………………..11
3.2. Database Design………………………………………………………..………………..11
3.2.1 ER Diagram……………………………………………………………..…………11-13
3.2.2 Database Schema…………………………………………...…………………..13-15
3.3 User Interface Design……………………………………….………………………15
3.3.1 User Interface Representation……………………………...……………………15-16
3.4. Process Modeling……………………………………………………………………….16
3.4.1. Flowchart of the System………………………………………………………….16-19
3.4.2. DFD……………………………………………………………………………..20-21
Chapter 4: Implementation and Testing……………………………………………………22
4.1 Implementation …………………………………………………………………..22-24
4.2 Tools Used ……………………………………………………………………...24
4.2.1 XAMPP Version: …………………………………………………………………..24
4.2.2 Browser ………………………...………………………………………………..……25
vii
4.3 Technology…………….……………………………………………………………..…25
4.3.1 PHP…………………...………………………………………………………….……25
4.3.2 MYSQL Database ………………………………………………………………..25
4.3.3 JavaScript……………..………………………………………………………………25
4.3.4 CSS…………………….……………………………………………………………...25
4.3.5 AJAX…………………..……………………………………………………………..26
4.4 Algorithm Used……………...………………………………………………………….26
4.4.2 Using Bubble Sort …………………………………………..……………………..26
4.5 Testing……………………………………………………….………………………26-27
4.5.1 Unit Testing……………………………..…………………………………………27-31
4.5.2 Integration Testing……...……………..……………………………………………….31
Chapter 5: Conclusion and Recommendation……………………………………………….32
5.1. Conclusion…………...………………………………………………………………….32
5.2 Recommendation or Future Scope…………………………………………………….…32
References…………………………………………………...……………………………33
Appendix I………………………………………………………………………………..34-39
List of Figures
Fig 2. 2 Gantt chart for the development of Online Agriculture Marketing System
viii
Fig 3. 2 ER-Diagram
ix
List of Tables
x
List of Abbreviations
AJAX Asynchronous JavaScript & XML
ER Entity Relationship
TC Test Case
UI User Interface
xi
xii
Chapter 1: Introduction
1.1 Introduction
The term agricultural marketing is composed of two words- agriculture and marketing.
Agriculture generally means growing and/or raising crops and livestock while marketing
encompasses a series of activities involved in moving the goods from the point of production
to the point of consumption. Many scholars have defined agricultural marketing and
incorporated essential elements of time, place, form and passion utility. The objective of
this study was to explore the agricultural market information services. The main objective
is to develop an agricultural Marketing Information System for Kingdoms that will serve the
information needs for all the stakeholders of the agricultural sector.
The agricultural produce that we consume daily reach to us after a long journey down the
market system from its origin. The efficiency of this system has a direct impact on our
everyday lives. The agricultural market system refers to the system through which
agricultural products reach our tables, from their origins spread all over parts of the country.
Agricultural marketing is a mechanism through which these goods reach different places
depending on marketplaces. Agricultural marketing is a process that involves assembling,
storage, processing, transportation, packaging, grading and distribution of different
agricultural commodities across the country.
Nepal is an agricultural country having 66 percent people directly engaged in farming and
still here is importing agricultural products and livestock around 16 percent of total imports
even though vegetables and fruits are decayed that produced by Nepal Farmer due to lack of
agriculture market.
There is no computerized system for the farmers to sell their products in Nepal. Nowadays,
the farmer goes to the nearest market and sells their product to a particular agent. The agent
1
asks the farmer to visit the market after a while to collect the cash earned out of the sold
product. Agent sells the product to another agent or a dealer at the high cost of that market.
All Agent tries to cut his commission out of that. There is no other way to deal and the exact
amount at which their product was sold There is no transparency and no facility is present for
the farmers to know the product rates at different markets where they can sell their products
for achieving high profits. In spite of all the opportunities knocking the doors the farmers are
not able to benefit out of those.
Customers are not buying agric products directly from the farmers and they are
paying high
costs.
Farmers have not a conventional way what products they must produce or grows
according to demand
1.2.1 Solution
Our Online Agriculture Marketing System can overcome the problems mentioned above as:
Online Marketing System can provide the easily and quickly agri product in our
country all the marketplaces.
The farmer easily sells their product with the help of this project.
2
After knowing the location, customers will be able to know about the availability
of the required product.
Customers are easily able to find out the low or high cost product and they order
the products which they want quickly and easily.
1.3 Objective
The objectives of these projects are as follows:.
⦁ To buy and sell Agriculture products at a better price locally or where sellers get maximum
price.
⦁ To give feedback farmers produce mostly demanded products by the customers.
3
1.4.2 Limitations
Each system has some limitations. This system has following types of limitations that this
system could not cover:
This site does not guarantee to buy if Seller does not respond.
In the 1 chapter, the project is introduced in detail along with the problem statement, its
st
The 2 chapter contains the functional and non-functional requirements of the project.
nd
Analysis and evaluation of the Project is done by feasibility analysis. Also, data modeling and
process modeling of the project are done to analyze the data and working mechanism of the
system in detail.
The 3rd chapter looks into detail about the system design of the project that includes interface
design and process design among others.
The methods and tools used to implement the project and all testing for this system are
clearly explained in the 4 chapter. th
4
5
Chapter 2: Requirement Analysis and Feasibility Analysis
Dr. Subhi Mohammed Ismail et. al. in their book mentioned details about the concept and
importance of agricultural marketing, types of agriculture markets, working of agriculture
markets, pricing mechanisms, grading methods, storage,marketing margins etc. of Saudi
Arabia [5].
Syed Khizer (May 2017) has presented a framework and model for the development of
AMS.The suggested model is used here in the development of the AMS for the kingdom
[7].
6
project, and assessing the timescales and resources required to complete it. There are two
types of requirement which are as follows:
a) Online Access:-
Since our system is soundly web-based application, there should be access to the internet.
b) Admin/User Registration:-
After having access to our system with the access of the internet, the admin and users can be
able to register themselves. The admin has major authority for the full access of the system.
And users should be approved by the admin to be registered. And later the user is provided
with the username and password.
c) Home Activity:- Given that the user is logged in to this application, then the first page
that is shown should be the home activity. The admin gets authority to all activities like
adding information about products can depict the notices like about the nearest location of
product etc. And also the users get references to other activities like search products, search
nearest locations and view the notices etc.
d) Edit and View product and product category details:- The admin should be able to edit
about the product and product categories and users should be able to view.
e) User Profile:-The user should be able to view their own profile, modify their details and
change their password.
This requirement determines what the system should do. The non-functional requirements of
this system are as follows:
Performance
7
The performance requirement provides detailed specification of the user interaction with our
system and measurements placed on the application performance. The performance will be
viable to the users.
Response time will not be longer if the user has a proper internet connection and for the fault
tolerance, if the system loses internet connection or the systems get some input or failure
errors, the user will be informed.
Maintainability
The system will be easy to extend. The code should be written in a way that it favors
implementation of new functions. New features or modules can be added or deleted if
needed. In addition to this, a test environment will be built for the application to allow testing
of the different functions.
The user interface will be light and easy to use so that any Luddite users can also make use of
it. The attractive color will be used and bright color will be discarded. If a user does
something wrong, systems will show the relevant messages through the dialogue box.
Security
Secure connection between user and system will be implemented. Only authenticated users
are allowed to view notices and photo galleries. No two or more users with the same email
and same username will be created.
8
Fig 2. 1 Use case Diagram
9
2.3. Feasibility Analysis
This proposed system is technically feasible. The software and hardware requirements for the
development of this application are not many more and already available as free as open
source. All technical aspects that are to be used in this system are easily available. The
software like XAMPP server, PHP and JavaScript high level programming language are to be
used to complete this system.
Operational feasibility is the measure of how well a system solves the problems, and takes
advantage of the opportunities identified during scope definition and how it satisfies the
requirements identified in the requirements analysis phases of system development. Our
system intends to solve the problem faced by the users that are mentioned as problem
statements. These activities are included in operational feasibility of the system.
Economic feasibility is the analysis of a project’s costs and revenues in an effort to determine
whether or not it is logical and possible to complete. This application is economically feasible
because our application is made using software that is available on the Internet and can be
downloaded free of cost.
10
Chapter 3: System Design
System design is the process of defining the architecture, components, modules, interfaces
and data for a system to satisfy specified requirements. Design of the system brings down the
knowledge of requirements and analysis to design the software product. Generally, this topic
deals with the module, database design, user interface design and the program design. For the
designing of the application, various diagrams like use case diagram, schema diagram, ER
diagram, DFD etc. have been used.
11
3.1. Module
A module is a software component or part of a program that contains one or more routines.
One or more independently developed modules make up a program. The application is
divided into four modules:
The first module in this system is the login. In the login process, there are two sorts of users
to be selected i.e. Admin and general user(visitor of the website).The general user must input
his username and password if he/she has already got an account, else the user should sign up
which is approved by admin filling form with name, address, contact, email, username,
password and so on. Thus the Admin can be able to give access to the users, display notices
etc. and the user can have access to see the notices on dashboard and have access to view the
whole part of the website. Furthermore, users can reset their password too.
The second module in this application is the accessibility of the main features of the
application after login. The features in this module include search bar, view notices, find
location, show list of product categories available etc.
Database design is the process of producing a detailed data model of a database. This
database model contains all the needed logical and physical design choices and physical
storage parameters needed to generate a design in a data definition language, which can then
be used to create a database. For the database design of the application, ER diagram, schema
diagram, and the format of data on the online database has been shown which are as follows:
3.2.1 ER Diagram
An Entity Relationship (ER) Diagram is a type of flowchart that illustrates how “entities”
such as people, objects or concepts relate to each other within a system. ER Diagrams are
most often used to design or debug relational databases in the fields of software engineering,
business information systems, education and research. Also known as ERDs or ER Models,
the use of defined sets of symbols such as rectangles, diamonds, ovals and connecting lines to
12
depict the interconnectedness of entities, relationships and their attributes. They mirror
grammatical structure, with entities as nouns and relationships as verbs.
Fig 3. 2 ER-Diagram
13
The above ER diagram shows the relationship between different entities of our system like
buyer, seller, admin and product. Entities have been represented by the rectangle, attributes of
an entity have been represented by the oval and the relationship between the entities has been
represented by the diamond shape. The lines with arrowhead represent that there is only one
instance of an entity involved in the relationship and the arrowless lines represent that there is
one or more instances of an entity. The underline word inside the oval shape represents the
primary key. In the above diagram, the primary keys are email id , admin id, seller id etc.
A database schema is the skeleton structure that represents the logical view of the entire
database and defines how the data is organized and how the relations among them are
associated. It formulates all the constraints that are to be applied on the data and defines its
entities and the relationship among them. It contains a descriptive detail of the database,
which can be depicted by means of schema diagrams. The database schemas of the
application are follows:
14
Fig 3. 3 Database Schema of Tables
15
In the above schema diagram, there are 13 tables. They have their own primary key and
attributes. The connecting line shows the relationship between the tables and foreign keys are
used to link tables together. The organization table is the main database table. When the user
first enters into the system, he or she will have to register themselves to view and get the
service of the system. When the user registers, all the details are saved in the organization
table which has the 20 columns. In this organization can be register two type of users that are
seller and buyer. The admin view the organization’s information. After the complete the
registration the seller login the account then the seller upload and manage the products. The
customer or buyer can see product ,as well as add to cart and then order.
User interface design is the process of designing user interfaces for computing devices and
hardware so that they’re easy for people to use. It’s an interdisciplinary field that involves
graphic designers, artists, programmers, psychologists and even anthropologists.
In order to make user interfaces in our system, many new groups and child views are used.
The view groups and child views that will be used in this application are as follows:
Relative Layout
A relative layout refers to a layout that defines web page width using some relative unit of
measurement. In our system, the content in the page will resize according to the size of
browser window users access it on.
Linear Layout
Linear Layout is a View Group that arranges its collection of UI components or containers in
a horizontal or vertical row. In our application, it is implemented to have the layout_width,
layout height, and orientation attributes and to indicate how control will be aligned on the
screen.
List View
16
List view is a view group that displays a list of scrollable items. The list items are manually
inserted in the list and using Bootstrap to get action on clicking on the list items.
Scroll View
Scroll view is a view that is used in the home content panel, list, in the form which shows
more areas that cannot be covered in a particular area. Scroll view is used in our system to
make easier scrolling. Because our site could benefit from the advantages of long scrolling
but doesn't want to convert entirely from a multi-page structure.
Image View
Image view is used to display image resources in the pages of our system.
Text View
Text view is a user interface element (view) that displays text to the user. Text view is used in
our system to provide user-editable text, see Edit Text etc.
Buttons
A user interface element (view) the user can top or click to perform an action. Users can also
make selection among options just like radio buttons and check buttons.
Popup menu view is a menu view that doesn’t appear until you click. It can be dynamically
popped up at a specific position within a component.
Slider
17
The Slider component is used because it is responsive and supports mouse drag for desktops
and also supports touch and swipe and to keep up with users pace when they click through
previous and next navigation.
Process modeling is used to describe how things must be done in contrast to the process itself
which is really what happens. A process model is roughly an anticipation of what the process
will look like. The process modeling of the application is done through Flowchart and DFD
diagrams.
The flowchart of the online agriculture marketing system is shown in figure below. The
Flowchart shown below has used simple geometric symbols and arrows to define
relationships. The beginning or end of the program is represented by a rectangle, a decision is
represented by a diamond and the I/O process is represented by a parallelogram.
18
Fig: Admin panel
19
Fig:Flow chart for Seller
20
Fig: flow chart buyer
21
3.4.2. DFD
The flow of data in our proposed system is shown through graphical representation of various
levels. The various levels include level 0 DFD(context diagram),level 1 DFD they are as
follows:
22
23
Waterfall model
Based on the waterfall model, the system was being developed as well as tested at the same
time to maintain quality. In our project use of the waterfall model is a breaking down of a
project activities into linear sequential phases, where each phase depends upon deliverables
of the previous one and correspondence to the specialization of the task.
24
25
Requirement Analysis
Requirement analysis is the first phase of our project. In our project, requirement
analysis defines the expectation of users for the application. Those expectations can
be being able to set and view notices, check the product, location of product
categories etc. All these requirements were analyzed.
System Design
System design defines the architecture, modules, interfaces, data for the system.
Implementation
The main purpose of implementation is to carry out the activities like coding of
applications with the aim to achieve objective.
Testing
In our project, the testing plan is to check whether the actual result matches the
expected result and to ensure that software is defect free.
Deployment
Deployment of the system includes the action of bringing resources and the developed
system into an effective action and delivering results and outputs.
Maintenance
The main work of maintenance is to keep details in proper condition for the durability
of the system.
26
extremely easy for developers to create a local web server for testing and deployment
purposes. It is also cross-platform, which means equally well on Linux, Mac, Windows. In
our project it is used as a local host server to access data from databases without use of
internet connection.
4.2.2 Browser
Browser is a software application for accessing information. We used Google Chrome as a
browser to access data from the database.
4.3 Technology
4.3.1 PHP
PHP stands for Hypertext Preprocessor, is a general purpose programming language designed
for web development. PHP is a server side scripting language that is used to develop static
websites, Dynamic websites or web applications. PHP is a server side interpreter scripting
language, in our system it is used for creating dynamic web pages and web pages that work
with databases.
4.3.3 JavaScript
JavaScript is an object-oriented computer programming language, commonly used to create
an interactive effect within a web browser. JavaScript is a client side scripting language
which is used for creating web pages. It is used when a web page is used to make dynamic
and special effects on pages.
4.3.4 CSS
CSS is a style sheet language used to describe the presentation of a document. Cascading
Style Sheet, referred to as CSS, is a simple design language intended to simplify the process
of making web pages presentable. In our project CSS, is used to control the color of text, the
style of fonts, the spacing between the paragraphs, how columns are sized and laid out, what
background color and images are used.
27
4.3.5 AJAX
Ajax stands for Asynchronous JavaScript and XML, is a client side programming. In our
project Ajax is used for the selection of addresses. To allow web pages to be updated
asynchronously by exchanging small amounts of data with the server behind the scenes, Ajax
is used. This means that it is possible to update parts of a web page, without reloading the
whole page.
Bubble sort is a sorting algorithm that works by repeatedly stepping through lists that need to
be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong
order. This passing procedure is repeated until no swaps are required, indicating that the list
is sorted. Bubble sort gets its name because smaller elements bubble toward the top of the
list.
Pseudocode steps:
BubbleSort(Array, n)
for i = 0 to n-2
28
{
for j = 0 to n-2
swap(Array[j], Array[j+1])
4.5 Testing
Testing is done in each and every project during or after the completion of building the
products. Software testing is the process of evaluating a software item to detect differences
between given input and expected output. It also assesses the features of a software item.
Testing assesses the quality of the product. Software testing is a process that should be done
during the development process.
Unit Testing has been done testing the system individual activity. Each activity like
registration, sign in, reset password, homepage, photo gallery, product details, etc. has been
tested individually.
29
Test Case
Test Test Test Steps Input test data Expected Actual Pass/fai
Cas Scenari Results Results l
e ID o
Password:
Click
12345
on the
submit
button. Confirm
password: 12345
User type:
Admin
30
For User Registration on User Panel
Table 4. 2 Test Case for User Registration
Test Test Test Steps Input test data Expected Actual Pass/fail
31
Case Scenario Results Results
ID
Fill Email:
up the
registrat
ion form Password:
with the
Check the valid
registration Confirm
data. password:
activity
with valid
data. Clic Image
k on the
submit
button. Role
Province
District
Ope
n Municipali
Admin ty
Panel
Ward no
Click
on
Forms
Menu
Click
on Add
User
32
Fill
Up the
Donor
registra
tion Mobile
form number:
with
the
valid Address:
data.
Email:
Click
on
Submit Password:
Button
Confirm
password:
Case
ID
33
data
Cl
ick on
login
button
Cl
ick on
login
button
34
Buyer Info Entry
Table 4. 5 Test case for Buyer infoWard:
Select entry
Contact No. :
9864743652
35
4.5.2 Integration Testing
Integration testing is the phase in software testing in which individual software modules are
combined and tested as a group. Integration testing is conducted to evaluate the compliance
of system or component with specified functional requirements. In our system, integration
testing applied after unit testing where modules like login form, buyer entry form etc are
integrated as a whole.
The Agriculture Marketing System is the most important in now days, it provide the
agriculture product globally market place. The main aim of this project is to help the farmer
and customer to easily connect with each other and . The farmer s are to upload their product
in large amount the needed customer is contact them .
36
like to waste their product and they can easily supply their product in the market. In the help
of online marketing system they provide all over country or region and farmer directly
contact their customer .The customers are easily order their product and they can buy. The
scope of agriculture marketing system can be defined through the functions served by it in
pursuit of achieving the sustainable economic growth and development.
37
References
1. Fellows, P. (2004). Processed foods for improved livelihoods. Rome: Food and
Agriculture
2. Organization of the United Nations. Retrieved from
3. http://www.fao.org/docrep/007/y5113e/y5113e00.htm#Contents
4. Fernandes, V. (2013, August). The Potato Farming Success of Gujarats
Banaskantha District.
5. Retrieved from http://www.forbesindia.com/article/on-assignment/the-potato-
farmingsuccess-of-gujarats-banaskantha-district/35747/1
6. Glover, D. J. (1987). Increasing the benefits to smallholders from contract
farming: Problems
7. for farmers organizations and policy makers. World Development, 15(4), 441–
448.
8. Governance Knowledge Centre. Direct Agricultural Marketing?: Rythu Bazar in
Andhra Pradesh
9. Gujarat State Agricultural Marketing Board. (2014). Contract Farming.
Retrieved June 27,
10. 2017, from https://gsamb.gujarat.gov.in/contract-farming.htm
11. Hobbs, T. (2016). Tesco backed to return to growth this year as “Farm” brands
drive sales.
38
Login Form
Registration Form
39
Dashboard
Province List
40
District List
Municipality Entry
41
Ward List
Product Category
42
Product List
Product Group
43
Front End Page
Searched Report
44