Professional Documents
Culture Documents
Farmers Agro Products (1) 2
Farmers Agro Products (1) 2
BACHELOR OF ENGINEERINGING
IN
COMPUTER SCIENCE AND
ENGINEERING BY
Chandan Yadav ks
( 1SP20CS013)
Under the guidance
Of
Asst.Professor
Mrs.SushmaB.A
Dept. of CSE
CERTIFICATE
This is to certify the project work entitled “ONLINE NEWS PORTAL” has been
successfully carried out by Chandan Yadav ks bearing USN 1SP20CS013 of V sem in partial
fulfilment for the award of Bachelor of Engineering in Computer Science and Technology
of the Visvesvaraya Technological University, Belgaum during the year 2023.The project
report has been approved as it satisfied the academic requirement in respect of the mini project
work prescribed for Bachelor of Engineering.
Firstly, I thank the Management late Shri A Krishnappa, Chairman SEA College of
Engineering and Technology for Providing Necessary infrastructure and creating good
environment.
I would like to express my profound thanks to our respected principal
Dr. B VENKATANARAYANA for the encouragement and support given by him.
I would like to express my sincere thanks to our respected Dr. Dr.B.LOGANAYAGI , HOD
OF COMPUTER SCIENCE AND ENGINEERING department, for her assistance and
guidance.
I am thankful for the support rendered by my Project guide and coordinator Mrs.Sushma B.A for
her valuable suggestions.
I am also obliged, to the faculty members of CSE Department who rendered their valuable
assistance for the Project.
And, I would like to express my heart full gratitude to my parents who have extended their help
throughout my Project.
And finally, I would like to express my heart full gratitude to my friends and all those who have
extended their help throughout my Project.
Chandan Yadav ks
(1SP20CS013)
Abstract
It’s is website which runs on web browser i.e., Google chrome, Microsoft edge.
This website is developed in bracket code editor or Visual Studio code editor as a
front end software.
The programming language used for developing these agro products shopping is
MYSQL, HTML, CSS, JavaScript, Php.
These website is a object oriented and dynamic website and functionality of agro
products shopping is implemented by javascript.
All the modules in these agro products shopping helps the farmer and customer
to sell and purchase the agro products from farmer to buyer.
These website is the both admin(farmer) and client (buyer) side. These website
is user friendly and expandable.
It covers all modules for farmer ie., farmer login,register page,upload product
page,our products page to know about farmer products.
Similarly has all modules for buyer i.e buyer login,register page,search product
page,buy now page.
Contents
Chapter -1 Introduction (Explanation about the project).
Chapter -2 System Analysis-Photo.
Chapter -3 Software Requirement Specification.
3.1 Existing System.
3.2 Proposed System.
3.3 Requirement Specification.
3.31 About the technologies used.
3.32 Hardware and Software
Requirement. Chapter -4 System Design
4.1 Architecture (Overall Project architecture)
4.2 DFD
4.3 ER Diagram
4.4 Database Design (Tables)
Chapter -5 Implementation (Coding of home page).
Chapter -6 Testing
6.1 About testing (1 page).
6.2 Types of Testing (2 Pages).
6.3 Test Cases (for validation)
Photo. Chapter -7 Screen Shots.
Chapter -8 Future
Enhancement. Chapter -9
Conclusion.
Chapter -10 Bibliography.
1. INTRODUCTION
This project is about sales of agro products by farmer (seller) and purchase of those
agro products by buyer, through our website. Without the need of middleman Agro
products shopping website is a farmer and customer website
chrome,Microsoft edge.
These website is developed in bracket code editor or Visual Studio code editor as a
font end software.
The programming language used for developing these agro products shopping is
MYSQL,HTML,CSS,JavaScript
These website is a object oriented and dynamic website and functionality of agro
products shopping is implemented by javascript.
The backend software ie., used to website is xammp control panel,apache which helps
the website to run on web browser. Whereas SQL which stores the data collected from
website using in the form of database table.
All the modules in these agro products shopping helps the farmer and customer to sell
and purchase the agro products from farmer to buyer.
These website is the both admin(farmer) and client (buyer) side. These website is user
friendly and expandable.
It covers all modules for farmer ie., farmer login,register page,upload product page,our
products page to know about farmer products. Similarly has all modules for buyer i.e
buyer login,register page,search product page,buy now page.
> Due to involvement of middleman farmers not getting a reasonable price in offline
market so can they switch to online and earn..
>Farmers hard grown agro products like groundnuts, corn, grains, cereals,
>So those agro products should get sold and farmers should get income.
>And we got an idea that farmers can directly upload the agro products in our
website.
> Due to involvement of middleman farmers not getting a reasonable price in
offline market so can they switch to online and earn..
>Farmers hard grown agro products like groundnuts, corn, grains, cereals,
>So those agro products should get sold and farmers should get income.
>And we got an idea that farmers can directly upload the agro products in our
website.
1|Page
2. System Analysis
Definition:
System Analysis is the detailed study of the various operations performed by the
system and their relationships within and outside the system. Analysis is the process
of breaking something into its parts so that the whole may be understood. System
analysis is concerned with becoming aware of the problem, identifying the relevant
and most decisional variables, analyzing a synthesizing the various factors and
determining an optimal or at least a satisfactory solution. During this, a problem is
identified, alternate system solutions are studied and recommend tic be made about
committing the resources used to design the system.
2|Page
Farmer’s Agro Product Shopping
Feasibility Study
Feasibility
3|Page
Farmer’s Agro Product Shopping
Technical Feasibility
Technical Feasibility deals with the hardware as well as software requirements.
Technology is not a constraint to type system development. We have to find out whether
the necessary technology, the proposed equipment’s have the capacity to hold the data,
which is used in the project, should be checked to carry out this technical feasibility.
This software is running in windows 2000 Operating System, which can be easily
Economic Feasibility
Economic Feasibility This feasibility study present tangible and intangible benefits from
the prefect by comparing the development and operational cost. The technique of cost
benefit analysis is often used as a basis for assessing economic feasibility. This system
needs some initial investment than the existing system, but it can be justifiable that it
will improve quality of service. Thus, feasibility study should center along the following
points:
Cost comparison
Overall objective.
Our project is economically feasible. It does not require much cost to be involved in the
overall process. The overall objectives are in casing out the requirement processes.
Behavioral/ Operational Feasibility
This analysis involves how it will work when it is installed and the assessment of
political and managerial environment in which it is implemented. People are inherently
resistant to change and computers have been known to facilitate change. The new
proposed system is very much useful to the useful to the users and there for it will accept
broad audience from around the world.
3. SOFTWARE REQUIREMENT ANALYSIS
1. Register:
Register is provided for both seller and buyer.
It has attributes like username, password, email id , phone number ,address.
2.Login:
Login is provided for both seller and
buyer. It has attributes like username
and password. 3.Digital market:
It has 4buttons like my profile, search, our products ,order
details 4.My profile:
It has 2 upload button and logout button and has personal details of both seller
and buyer. 5.Search:
It has list of products uploaded by seller for searching.
6.Our products:
It has list of products uploaded by seller for his reference.
7.Order details:
It has details of which seller sold which product to which buyer.
8.Upload product:
It has 1button like upload button to upload images and has category dropdown menu
to select product category
2textbox like description box to give details of product and price textbox to price per
unit 9.Review:
It has description box to write review of product. It has drop menu to give rating
from 1 to 10 10.Buy Now:
It has details of buyer, quantity of product, total amount of product.
11.E learning Tab:
In learning tab, suggested videos will be embedded, interested farmers can learn
more on farming through these suggested videos
Farmer’s Agro Product Shopping
Here the focus is on specifying what has been found in the process of analysis such as
representation, specification languages and tools and also checking the requirement phase,
terminates with the production of the validate SRS document, producing the SRS
document is the basic goal of this place.
o Backend:
o 1. Xampp control panel: (local host where we can write php code for connection with
database )
o 2. Mysql: (backend storage media to store in database) o 3. Apache: (server to execute or
host website on web server) o Frontend:
Visual studio code editor
4. SYSTEM DESIGN
4.1 Architecture
FARMERS AGRO PRODUCTS
A data flow is a graphical technique that describes information flow and transforms
that are applied as
data move from input to output. The DFD is also known as data flow graphs or bubble
sort.
There are four symbols are used in the drawing of Data Flow Diagrams, namely:
Entities
External entities represent the sources of data that enter the system or the recipients of data that
leave the system.
Process
Database
Data Flow
FARMERS AGRO PRODUCTS
4.3 ER DIAGRAM
FARMERS AGRO PRODUCTS
The result is a series of diagrams that represent the business activities in a way that is
clear and easy to communicate. As business model comprises one or more data flow
diagrams. Initially a context diagram is drawn, which is simple representation of the
entire system under investigation.
ENTITY
FARMERS AGRO PRODUCTS
FARMERS AGRO PRODUCTS
Buyer
FARMERS AGRO PRODUCTS
Farmer Product
FARMERS AGRO PRODUCTS
Transaction
FARMERS AGRO PRODUCTS
FARMERS AGRO PRODUCTS
Review
FARMERS AGRO PRODUCTS
5. CODING
Home page
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Agroproducts shopping</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
FARMERS AGRO PRODUCTS
<?php require
'menu.php';
?>
<h2>Agroproducts shopping</h2>
<p>Your Product Our Market</p>
<br><br>
<center>
<div class="row uniform">
<div class="6u 12u$(xsmall)">
<button class="button fit" onclick="document.getElementById
('id01').style.display='block'" style="width:auto">LOGIN</button>
</div>
</section>
<p>Digital Market</p>
</section>
<section class="4u 12u$(small)">
<i class="icon big rounded fa-comments"></i>
<p>AgroProducts shopping</p>
</section>
<section class="4u$ 12u$(small)">
<i class="icon big rounded fa-user"></i>
<p>Register with us</p>
</section>
</div>
</div>
</section>
<center>
<h1 style="font: 35px calibri;">About Us</h1>
</center>
<div class="footer-left">
<h3 style="font- family: 'Times New Roman',
cursive;">AgroCulture © </h3>
<!-- <div class="logo">
<a href="index.php"><img src="images/logo.png" width="200px"></
a>
</div>-->
<br />
FARMERS AGRO PRODUCTS
<div class="footer-center">
<div>
<i class="fa fa-map-marker"></i>
<p style="font-
size:20px">Agro Culture Fam<span>Vormir</span></p>
</div>
<div>
<i class="fa fa-phone"></i>
<p style="font-size:20px">123456789</p>
</div>
<div>
<i class="fa fa-envelope"></i>
<p style="fontsize:20px"><a href="mailto:agroculture@gmail.com"
style="color:white">demo@demo.com</a></p>
</div>
</div>
<div class="footer-right">
<p class="footer-company-about" style="color:white">
<span style="font-size:20px"><b>About AgroCulture</b></span>
AgroCulture is e-commerce trading platform for grains & grocerries...
</p>
<a href="#"><i style="margin-left: 0;margin-top:5px" class="fa fa-
instagram"></i></a>
FARMERS AGRO PRODUCTS
</footer>
alue="1" checked>
<label for="farmer">Farmer</label>
</div>
ue="0">
<label for="buyer">Buyer</label>
</div> -->
</div>
<center>
</div>
</div>
</center>
</div>
FARMERS AGRO PRODUCTS
</form>
</section>
</div>
</div>
</div>
</form>
</div>
<div class="container">
<section>
<h3>SignUp</h3>
<form method="post" action="Login/signUp1.php">
<center>
<div class="row uniform">
<div class="3u 12u$(xsmall)">
<input type="text" name="name" id="name" value=""
placeholder="Name" required/>
FARMERS AGRO PRODUCTS
</div>
<div class="3u 12u$(xsmall)">
<input type="text" name="uname" id="uname" value="
" placeholder="UserName" required/>
</div>
</div>
<div class="row uniform">
<div class="3u 12u$(xsmall)">
<input type="text" name="mobile" id="mobile" value=
"" placeholder="Mobile Number" required/>
</div>
="1" checked>
<label for="buyer">buyer</label>
</div>
</div>
<div class="row uniform">
<div class="3u 12u$(small)">
<input type="submit" value="Submit" name="submit"
class="special" /></li>
</div>
</div>
</center>
</form>
</section>
</div>
FARMERS AGRO PRODUCTS
</div>
</form>
</div>
// When the user clicks anywhere outside of the modal, close it window.onclick =
function(event) { if (event.target == modal) {
modal.style.display = "none";
}
}
// When the user clicks anywhere outside of the modal, close it window.onclick =
function(event) {
if (event.target == modal1) {
modal1.style.display = "none";
}
}
</script>
</body>
</html>
FARMERS AGRO PRODUCTS
Login page
<?php
session_start();
$user = dataFilter($_POST['uname']);
$pass = $_POST['pass'];
$category = dataFilter($_POST['category']);
require '../db.php';
if($category == 1)
{
$sql = "SELECT * FROM farmer WHERE fusername='$user'";
$result = mysqli_query($conn, $sql);
$num_rows = mysqli_num_rows($result);
if($num_rows == 0)
{
$_SESSION['message'] = "Invalid User Credentialss!"; header("location:
error.php");
}
else
{
$User = $result->fetch_assoc();
FARMERS AGRO PRODUCTS
if (password_verify($_POST['pass'], $User['fpassword']
{
$_SESSION['id'] = $User['fid'];
$_SESSION['Hash'] = $User['fhash'];
$_SESSION['Password'] = $User['fpassword'];
$_SESSION['Email'] = $User['femail'];
$_SESSION['Name'] = $User['fname'];
$_SESSION['Username'] = $User['fusername'];
$_SESSION['Mobile'] = $User['fmobile'];
$_SESSION['Addr'] = $User['faddress']; $_SESSION['Active'] =
$User['factive'];
$_SESSION['picStatus'] = $User['picStatus'];
$_SESSION['picExt'] = $User['picExt'];
$_SESSION['logged_in'] = true;
$_SESSION['Category'] = 1;
$_SESSION['Rating'] = 0;
if($_SESSION['picStatus'] == 0)
{
$_SESSION['picId'] = 0;
$_SESSION['picName'] = "profile0.png";
} else
{
$_SESSION['picId'] = $_SESSION['id'];
$_SESSION['picName'] = "profile".$_SESSION['picId'].".".$_SESSI
ON['picExt'];
}
FARMERS AGRO PRODUCTS
header("location: profile.php");
} else
{
//echo mysqli_error($conn);
$_SESSION['message'] = "Invalid User Credentials!"; header("location:
error.php");
}
}}
else
{
if($num_rows == 0)
{
$_SESSION['message'] = "Invalid User Credentialss!"; header("location:
error.php");
}
else
{
$User = $result->fetch_assoc();
if (password_verify($_POST['pass'], $User['bpassword']))
{
FARMERS AGRO PRODUCTS
$_SESSION['id'] = $User['bid'];
$_SESSION['Hash'] = $User['bhash'];
$_SESSION['Password'] = $User['bpassword'];
$_SESSION['Email'] = $User['bemail'];
$_SESSION['Name'] = $User['bname'];
$_SESSION['Username'] = $User['busername'];
$_SESSION['Mobile'] = $User['bmobile'];
$_SESSION['Addr'] = $User['baddress']; $_SESSION['Active'] =
$User['bactive'];
$_SESSION['logged_in'] = true;
$_SESSION['Category'] = 0;
header("location: profile.php");
} else { //echo
mysqli_error($conn);
function dataFilter($data)
{
$data = trim($data);
FARMERS AGRO PRODUCTS
?>
<?php
session_start();
if ($_SERVER["REQUEST_METHOD"] == "POST")
{
$name = dataFilter($_POST['name']);
$mobile = dataFilter($_POST['mobile']);
$user = dataFilter($_POST['uname']);
$email = dataFilter($_POST['email']);
$pass = dataFilter(password_hash($_POST['pass'], PASSWORD_BCRYPT));
$hash = dataFilter( md5( rand(0,1000) ) );
$category = dataFilter($_POST['category']);
$addr = dataFilter($_POST['addr']);
$_SESSION['Email'] = $email;
$_SESSION['Name'] = $name;
$_SESSION['Password'] = $pass;
$_SESSION['Username'] = $user;
$_SESSION['Mobile'] = $mobile;
FARMERS AGRO PRODUCTS
$_SESSION['Category'] = $category;
$_SESSION['Hash'] = $hash;
$_SESSION['Addr'] = $addr;
$_SESSION['Rating'] = 0;
}
require '../db1.php';
$length = strlen($mobile);
if($length != 10)
{
$_SESSION['message'] = "Invalid Mobile Number !!!";
header("location: error.php"); die();
}
if($category == 1)
{
$sql = "SELECT * FROM farmer WHERE femail='$email'";
if ($result->num_rows > 0 )
{
$_SESSION['message'] = "User with this email already exists!";
FARMERS AGRO PRODUCTS
if (mysqli_query($conn, $sql))
{
$_SESSION['Active'] = 0;
$_SESSION['logged_in'] = true;
$_SESSION['picStatus'] = 0;
$_SESSION['picExt'] = png;
if($_SESSION['picStatus'] == 0) {
$_SESSION['picId'] = 0;
$_SESSION['picName'] = "profile0.png";
} else
{
$_SESSION['picId'] = $_SESSION['id'];
FARMERS AGRO PRODUCTS
$_SESSION['picName'] = "profile".$_SESSION['picId'].".".$_SESSI
ON['picExt'];
}
$_SESSION['message'] =
$to = $email;
$subject = "Account Verification ( ArtCircle.com )";
$message_body = "
Hello '.$user.',
header("location: profile.php");
}
else
{
FARMERS AGRO PRODUCTS
else
{
$sql = "SELECT * FROM buyer WHERE bemail='$email'";
if ($result->num_rows > 0 ) {
$_SESSION['message'] = "User with this email already exists!";
//echo $_SESSION['message'];
header("location: error.php");
} else
{
$sql = "INSERT INTO buyer (bname, busername, bpassword, bhash, bmob
ile, bemail, baddress)
VALUES ('$name','$user','$pass','$hash','$mobile','$email','$addr')";
if (mysqli_query($conn, $sql))
{
$_SESSION['Active'] = 0;
$_SESSION['logged_in'] = true;
FARMERS AGRO PRODUCTS
$_SESSION['message'] =
$to = $email;
$subject = "Account Verification ( ArtCircle.com )";
$message_body = "
Hello '.$user.',
Thank you for signing up!
http://localhost/AgroCulture/Login/verify.php?email=".$email."&hash=".
$hash;
header("location: profile.php");
FARMERS AGRO PRODUCTS
}
else
{
//echo "Error: " . $sql . "<br>" . mysqli_error($conn);
$_SESSION['message'] = "Registration not
successfull!"; header("location: error.php");
}
}
}
function dataFilter($data)
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
6. TESTING
INTRODUCTION
The test causes should be planned before testing begins. Then as the testing
progresses, testing shifts
focus in an attempt to find errors in integrated clusters of modules. The
philosophy behind testing is to find errors. Actually, testing is the state of
implementation that is aimed at ensuring that the system works actually and
efficiently before implementation.
Testing is done for each module. After testing all the modules, the modules are
integrated and testing of the final system is done with the test data, specially
designed to show that the system Will operate successfully in all its aspects
conditions. The procedure level testing is made first. By giving improper inputs,
the errors occurred are noted and eliminated. Thus, the system testing is a
confirmation that all is correct and an opportunity to show the user that the
system works. Ille final step involves Validation testing, which determines
whether the software function as the user expected. The end-user rather than the
system developer conduct this test most software developers as a process called
"Alpha and Beta test" to uncover that only the end user seems able to find.
This is the final Step in system life cycle. Here we implement the tested errorfree
system into real-life environment and make necessary changes, which runs in an
online fashion. Here system maintenance is done every months or year based on
company policies, and is checked for errors like runtime errors, long run errors
and other maintenances like table verification and During the requirement
analysis and design, the output is a document that is usually textual and non-
executable. After the coding phase, computer programs are available that can be
executed for testing purpose. This implies that testing not only has to uncover
errors introduced during coding, but also errors introduced during the previous
phases.
FARMERS AGRO PRODUCTS
Types of testing
1. Unit testing
2.Integration testing
3.System testing
1. Unit testing
Unit testing verification efforts on the smallest unit of software design, module.
This is known as “Module Testing". The modules are tested separately. This
testing is carried out during stage itself. In these testing Steps, each module is
found to be working satisfactorily as regard to the expected output from the
module.
2. Integration testing
3. System testing
• Code Testing
• Specification Testing
Code Testing
This strategy examines the logic of the program. A path is a specific combination
of conditions handled by the program. Using this strategy, every path through the
program is tested
Specification Testing
My Profile form
FARMERS AGRO PRODUCTS
Transaction Form
FARMERS AGRO PRODUCTS
Review Form
8. FUTURE ENHANCEMENT
There is a wide scope for future development of the software. The world of
computer fields is not static it is always subject to change. The technology which
is famous today will become outdated very next day. As system exists as online it
possible to conduct auction wherever administrator being in journey. To keep
abstract of technical improvements, the system may be refinement. So it is not
concluded. Yet it will improve with further enhancements.
Android Version: Android version of this software will be made available so users
Feedback: A separate module can be used by the customer for taking feedback from
the customers
for improving this system through updates.
It is essential to change the software when new software arrives with more
advanced feathers. So it is much necessary for further development. Further
enhancements can be done in an efficient manner with disruption to the system.
This project may also be enhanced in several ways as there is always room for
improving the functionality of the application. The future enhancements that
would make the application more professional.
Email facility will be given for communication. Payment gate way like will be enabled.
FARMERS AGRO PRODUCTS
9. CONCLUSION
1. The main purpose of any software is that it satisfies users and software is reliable.
2. For
Seller has no income loss while uploading products and while selling
products as no middleman is involved.
4. This
system can be implemented for hassle free, simple and reduces time
andspace complexity
5. This system completes the work in the allocated slot time, and is highly
10. BIBILIOGRAPHY
Below is the list of references using which we were able to complete our project
Successfully.
Websites:
www.w3schools.com www.youtube.com
Reference Books: