Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 25

AGRI GROW 2019

TABLE OF CONTENTS
CHAPTER 1:
1. INTRODUCTION
1.1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM
1.2 APPLICATIONS OF DBMS
1.3 AGRI GROW
1.4 AIM OF THIS PROJECT
1.5 OBJECTIVES
CHAPTER 2
2 . FUNCTION DESCRIPTION
2.1 HTML
2.2 MySQL
2.3 JAVA
2.4 JSP
2.5 CSS
2.6 JAVA SCRIPT

CHAPTER 3
3 HARDWARE AND SOFTWARE REQUIREMENTS
3.1 SOFTWARE REQUIREMENTS
3.2 HARDWARE REQUIREMENTS

CHAPTER 4
4 DESIGN AND IMPLEMENTATION
4.1 SYSTEM DESIGN
4.2 DATABASE DESIGN
4.3 SCHEMA DIAGRAM
4.4 ER DIAGRAM
4.5 DATA FLOW DIAGRAM
4.6 STORED PROCEDURE
4.7 TRIGGER

CHAPTER 5
5. PSUDOCODE

1
AGRI GROW 2019

5.1 DATABASE CONNECTIVITY

CHAPTER 6
6.RESULTS AND SNAPSHOTS
CHAPTER 7
7. CONCLUSION
CHAPTER 8
8. REFERENCES

2
AGRI GROW 2019

CHAPTER 1
1.INTRODUCTION

1.1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM

Databases and database technology have a major impact on the growing use of
computers. It is fair to say that databases play a critical role in almost all areas where
computers are used, including business, electronic, commerce, engineering, medicine,
genetics, law, education, and library science. The word database is so commonly used
that we must begin by defining what a database is. Our initial definition is quite general. A
database is a collection of related data. By data, we mean known facts that can be
recorded and that have implicit meaning. For example, consider the names, telephone
numbers, and addresses of the people you know. You may have recorded this data in an
indexed address book or you may have stored it on a hard drive, using a personal
computer and software such as Microsoft Access or Excel. This collection of related data
with an implicit meaning is a database. The preceding definition of database is quite
general; for example, we may consider the collection of words that make up this page of
text to be related data and hence to constitute a database. However, the common use of
the term database is usually more restricted. A database has the following implicit
properties: A database represents some aspect of the real world, sometimes called the
mini world or the universe of discourse (UoD). Changes to the mini world are reflected in
the database. A database is a logically coherent collection of data with some inherent
meaning. A random assortment of data cannot correctly be referred to as a database. A
database is designed, built, and populated with data for a specific purpose. It has an
intended group of users and some preconceived applications in which these users are
interested. A database management system (DBMS) is a collection of programs that
enables users to create and maintain a database. The DBMS is a general-purpose
software system that facilitates the processes of defining, constructing, manipulating, and
sharing databases among various users and applications. The database definition or
descriptive information is also stored by the DBMS in the form of a database catalogue or
dictionary; it is called meta-data. Manipulating a database includes functions such as
querying the database to retrieve specific data, updating the database to reflect changes inthe

3
AGRI GROW 2019

mini world, and generating reports from the data. Sharing a database allows multiple
users and programs to access the database simultaneously.

1.2 APPLICATIONS OF DBMS

Applications where we use Database Management Systems are: Telecom: There is a


database to keeps track of the information regarding calls made, network usage, customer
details etc. Without the database systems it is hard to maintain that huge amount of data that
keeps updating every millisecond. Industry: Where it is a manufacturing unit, warehouse or
distribution centre, each one needs a database to keep the records of ins and outs. For
example, distribution centre should keep a track of the product units that supplied into the
centre as well as the products that got delivered out from the distribution centre on each day;
this is where DBMS comes into picture. Banking System: For storing customer info, tracking
day to day credit and debit transactions, generating bank statements etc. All this work has
been done with the help of Database management systems. Education sector: Database
systems are frequently used in schools and colleges to store and retrieve the data regarding
student details, staff details, course details, exam details, payroll data, attendance details, fees
detail etc. There is a hell lot amount of inter-related data that needs to be stored and retrieved
in an efficient manner. Online shopping: You must be aware of the online shopping websites
such as Amazon, Flipkart etc. These sites store the product information, your addresses and
preferences, credit details and provide you the relevant list of products based on your query.
All this involves a Database management system.

1.3. INTRODUCTION TO AGRI GROW


Agriculture is the primary source of livelihood for about 58 per cent of India’s
population.Agriculture is the science and art of cultivating plants and livestock.Agriculture
was the key development in the rise of sedentary human civilization,Whereby farming of
domesticated species created food surpluses that enabled people to live in cities. The history
of agriculture began thousands of years ago. After gathering wild grains beginning at least
105,000 years ago,Nascent farmers began to plant them around 11,500 years ago…

AGRI GROW is a small application. User has to register and login through the home page.

4
AGRI GROW 2019

Users also able to utilize the services we provided in the project.Our services are soil test and
we selling of crops seeds.He/she can manage their orders and find the solutions to several
types of crops diseases in organic methods. The design is pretty simple and the user won’t
find Difficult to understand, use and navigate.
1.4 AIM OF THIS PROJECT

 Provide good services to users


 Provide information about seasonal crops and their diseases
 Achive good feed back from users
 Schedule and effectively control the users orders
 Provide advice and articulate the farmers needs.

1.5 OBJECTIVES

 Advance the interests of agriculture by encouraging conservation of natural resources


such as water, soil, vegetation and wild life.
 To make available quality seeds to the farmers locally
 Increase the farmers income through seed production
 To estimate the available nutrient status, reaction of a soil
 To evaluate the status of soils of a state or a district
 To prepare a basis for fertilizer recommendations.

5
AGRI GROW 2019

CHAPTER 2

2. FUNCTION DESCRIPTION

2.1 HTML

What is HTML?

 HTML is the standard markup language for creating Web pages.


 HTML stands for Hyper Text Markup Language
 HTML describes the structure of Web pages using markup
 HTML elements are the building blocks of HTML pages
 HTML elements are represented by tags
 HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
 Browsers do not display the HTML tags, but use them to render the content of the
page
 HTML Documents
 Form elements are different types of input elements, like text fields, checkboxes,
radio buttons, submit buttons, and more.

2.2 MySQL

What is a Database?

A database is a separate application that stores a collection of data. Each database has one
or more distinct APIs for creating, accessing, managing, searching and replicating the
data it holds.

Other kinds of data stores can also be used, such as files on the file system or large hash
tables in memory but data fetching and writing would not be so fast and easy with those
type of systems

Nowadays, we use relational database management systems (RDBMS) to store and


manage huge volume of data. This is called relational database because all the data is

6
AGRI GROW 2019

stored into different tables and relations are established using primary keys or other keys
known as Foreign Keys

A Relational Database Management System (RDBMS) is a software that Enables you to


implement a database with tables, columns and indexes Guarantees the Referential Integrity
between rows of various tables. Updates the indexes automatically. Interprets an SQL query
and combines information from various tables. MySQL uses a standard form of the well-
known SQL data language. MySQL doesn't support SQL check constraints.

2.3 JAVA
Java is a general-purpose programming language that is class-based, object-oriented, and
designed to have as few implementation dependencies as possible. It is intended to let
application developers write once, run anywhere (WORA), meaning that compiled Java code
can run on all platforms that support Java without the need for recompilation. Java
applications are typically compiled to bytecode that can run on any Java virtual machine
(JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C
and C++, but it has fewer low-level facilities than either of them. As of 2019, Java was one of
the most popular programming languages.

Java was originally developed by James Gosling at Sun Microsystems (which has since been
acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java
platform. The original and reference implementation Java compilers, virtual machines, and
class libraries were originally released by Sun under proprietary licenses. As of May 2007, in
compliance with the specifications of the Java Community Process, Sun had relicensed most
of its Java technologies under the GNU General Public License. Meanwhile, others have
developed alternative implementations of these Sun technologies, such as the GNU Compiler
for Java (bytecode compiler), GNU Classpath (standard libraries), and IcedTea-Web (browser
plugin for applets).

The latest versions are Java 13, released in September 2019, and Java 11, a currently
supported long-term support (LTS) version, released on September 25, 2018; Oracle released
for the legacy Java 8 LTS the last free public update in January 2019 for commercial use,

7
AGRI GROW 2019

while it will otherwise still support Java 8 with public updates for personal use up to at least
December 2020. Oracle (and others) highly recommend uninstalling older versions of Java
because of serious risks due to unresolved security issues.[20] Since Java 9 (and 10 and 12) is
no longer supported. Oracle advises its users to immediately transition to the latest version
(currently Java 13) or an LTS release.

2.4 JSP (JAVA SERVER PAGES)


JavaServer Pages (JSP) is a collection of technologies that helps software developers create
dynamically generated web pages based on HTML, XML, SOAP, or other document types.
Released in 1999 by Sun Microsystems,[1] JSP is similar to PHP and ASP, but it uses the
Java programming language. To deploy and run JavaServer Pages, a compatible web server
with a servlet container, such as Apache Tomcat or Jetty, is required.

JSP pages use several delimiters for scripting functions. The most basic is <% ... %>, which
encloses a JSP scriptlet. A scriptlet is a fragment of Java code that is run when the user
requests the page. Other common delimiters include <%= ... %> for expressions, where the
scriptlet and delimiters are replaced with the result of evaluating the expression, and
directives, denoted with <%@ ... %>.

JSP allows Java code and certain predefined actions to be interleaved with static web markup
content, such as HTML. The resulting page is compiled and executed on the server to deliver
a document. The compiled pages, as well as any dependent Java libraries, contain Java
bytecode rather than machine code. Like any other .jar or Java program, code must be
executed within a Java virtual machine (JVM) that interacts with the server's host operating
system to provide an abstract, platform-neutral environment. JSPs are usually used to deliver
HTML and XML documents, but through the use of OutputStream, they can deliver other
types of data as well.

2.5 CSS
CSS stands for Cascading Style Sheets.CSS describes how HTML elements are to be
displayed on screen, paper, or in other media.CSS saves a lot of work. It can control the
layout of multiple web pages all at once.External stylesheets are stored in CSS files

8
AGRI GROW 2019

Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to
simplify the process of making web pages presentable.CSS handles the look and feel part of a
web page. Using CSS, you can control the color of the text, the style of fonts, the spacing
between paragraphs, how columns are sized and laid out, what background images or colors
are used, layout designs, variations in display for different devices and screen sizes as well as
a variety of other effects.

2.6 JAVA SCRIPT


Javascript is a lightweight , High-level ,interpreted programming language.It is designed for
creating network-centric applications. It is complimentary to and integrated with java.
JavaScript is very easy to implement because it is integrated with HTML. It is open and
cross-platform.Js has curly-bracket syntax, dynamic -typing , prototype-based, object-
oriented and first-class functions. Alongside HTML and CSS , JavaScript is one of the core
technologies of the World Wide Web.

9
AGRI GROW 2019

CHAPTER 3

3. HARDWARE AND SOFTWARE REQUIREMENTS

3.1 SOFTWARE REQUIREMENTS


SYSTEM : LAPTOP OR COMPUTER

OPERATING SYSTEM : WINDOWS OR PLATFORM INDEPENDENT

DATABASE : MYSQL

WEB BROWSER : CHROME

WEB SERVER : APACHE TOMCAT

FRONT END : HTML,JSP,JAVA-SCRIPT,CSS,JAVA

BACK END : MYSQL

3.2 HARDWARE REQUIREMENTS


PROCESSOR : INTEL CORE I3 OR ABOVE

HARD DISK : 500GB

RAM : 4GB

MONITOR : LED or LCD MONITOR

MOUSE : TOUCHPAD MOUSE

GRAPHICS : INTEL PENTIUM DUAL CORE 2.9GHz HD GRAPHICS

10
AGRI GROW 2019

CHAPTER 4

4. DESIGN AND IMPLEMENTATION

4.1 SYSTEM DESIGN


Design is the first step into the development phase for any engineered product or system.
Design is a creative process. A good design is the key to effective system. The term “design”
is defined as “the process of applying various techniques and principles for the purpose of
defining a process or a system in sufficient detail to permit its physical realization”. It may be
defined as a process of applying various techniques and principles for the purpose of defining
a device, a process or a system in sufficient detail to permit its physical realization. Software
design sits at the technical kernel of the software engineering process and is applied
regardless of the development paradigm that is used. The system design develops the
architectural detail required to build a system or product. As in the case of any systematic
approach, this software too has undergone the best possible design phase fine tuning all
efficiency, performance and accuracy levels. The design phase is a transition from a user
oriented document to a document to the programmers or database personnel.

4.2 DATABASE DESIGN


The database that is used to design the web application is MySQL. MySQL workbench is
used to create tables and run queries. In this application development, we have used MySQL
to store all the information about our project. Here we use several table to store the data they
are user_reg3 and contact1 tables for storeing users data, admin1 table for for maintain the
admis data, Products table for store the details about products, orders table for maintain the
orders record and feedback table for acquireing feedback from users.

11
AGRI GROW 2019

4.3 SCHEMA DIAGRAM

USER_REG3

Uid Uname Upass Uemail

CONTACT1

Uid Uname DOB Email Phone Gender Address City Pincode State Country

PRODUCTS

Pid Pname Product_price

ORDERS

Oid Uid Pid Product_quantity Product_price Total_price Orderdate

ORDERSTATUS

Oid Uid Pid Order_status

SOIL_TEST5

Uid Uname Address Phone

SREPORT

Userid Uname Rstatus

QUOTE

Cname Email Message

12
AGRI GROW 2019

4.4 ER DIAGRAM

13
AGRI GROW 2019

4.5 DATA FLOW DIAGRAM

A Data Flow Diagram (DFD) is a structured analysis and design tool that can be used for
flowcharting. A DFD is a network that describes the flow of data and the processes that
change or transform the data throughout a system. This network is constructed by using a set
of symbols that do not imply any physical implementation. It has the purpose of clarifying
system requirements and identifying major transformations. So it is the starting point of the
design phase that functionally decomposes the requirements specifications down to the
lowest level of detail. DFD can be considered to an abstraction of the logic of an information-
oriented or a process-oriented system flowchart. For these reasons DFD’s are often referred
to as logical data flow diagrams.

14
AGRI GROW 2019

4.6 STORED PROCEDURE


A Stored Procedure is a set of SQL statements with an assigned name, which are stored
in a relational database management system such that it can be reused and shared by
multiple programs

Create procedure soil_test5


Begin
select * from mydb.soil_test5
end;

4.7 TRIGGER
A Trigger is a special kind of stored procedure that executes automatically when an event
occurs in Database Server

create trigger setdate before insert on mydb.orders for each row


set new.total_price=new.product_quantity*new.product_price,new.orderdate=now();

15
AGRI GROW 2019

CHAPTER 5

5. PSUDOCODE

5.1 DATABASE CONNECTIVITY


try
{
Class.forName("com.mysql.jdbc.Driver");
connection con=DriverManager.getConnection
("jdbc:mysql://localhost:3309/mydb","root","433cs15008");
Statement st=con.createStatement();
String sql="select uname,upass from user_reg3 where uname='"+name+"'and
upass='"+pass+"'";
ResultSet rs=st.executeQuery(sql);
if(rs.next())
{
HttpSession session = request.getSession();
session.setAttribute("name",name);
response.sendRedirect("Welcomeuser.jsp");
}
else
{

out.println("<html><body><link rel=stylesheet type=text/css href=style8.css><table


class=content-table><thead><tr><th>Wrong User id or Password</th>
</tr></thead></table> </body></html>");

}
}
catch(Exception e) {
System.out.println(""+e);
}

16
AGRI GROW 2019

CHAPTER 6

6.RESULTS AND SNAPSHOTS


HOME PAGE

ABOUT

17
AGRI GROW 2019

SERVICES

ADMIN

LOGIN

18
AGRI GROW 2019

REGISTER

ONLINE SOIL TEST

19
AGRI GROW 2019

PRODUCTS

ADMIN PAGE

20
AGRI GROW 2019

USER PAGE

CONTACT FORM

21
AGRI GROW 2019

22
AGRI GROW 2019

TRACK

CHAPTER 7
7. CONCLUSION

23
AGRI GROW 2019

CHAPTER 8
8. REFERENCES

24
AGRI GROW 2019

25

You might also like