Академический Документы
Профессиональный Документы
Культура Документы
The satisfaction that accompanies to this project would be incomplete without the
mention of the people who made it possible, without whose constant guidance and
encouragement would have made our efforts go in vain.
We consider ourselves privileged to express our gratitude and respect towards all those who
guided us through the Major Project,“FOOD TRACEABILITY USING BLOCKCHAIN”.
We would like to express our profuse gratitude to Dr. SIDDARAJU, HOD, Dept. of
Computer Science & Engineering, Dr.AIT, for giving us the support, encouragement and
providing us the required lab facilities that was necessary for the completion of this project.
As a token of gratitude, we would like to acknowledge our sincere gratefulness to the internal
guide Mrs.Sangeetha G M, Asst. Professor, Dept. of CSE, Dr.AIT for their unlimited
support and encouragement provided throughout the process.
We also express our gratitude and sincere thanks to all the teaching and non-teaching staff of
Computer Science & Engineering Department.
Finally, yet importantly, we would like to express our heartfelt thanks to our beloved Parents
and Friends for their help and wishes for the successful completion of the project.
TEJAS M P [1DA15CS160]
THEJAS P [1DA15CS163]
YASHASBABU C M [1DA15CS175]
TEJAS D S [1DA15CS185]
CONTENTS
INTRODUCTION................................................................................................................1
1.1 Existing System..........................................................................................................1
1.2 Proposed System........................................................................................................2
1.2.2 Aim of the project................................................................................................3
REQUIREMENT SPECIFICATIONS.................................................................................4
2.1 Details of Software.....................................................................................................4
2.1.1 Ganache...............................................................................................................4
2.1.2 Truffle..................................................................................................................4
2.1.3 Solidity................................................................................................................5
2.1.4 Metamask............................................................................................................5
2.1.5 npm(Node Package Manager).............................................................................5
2.1.6 JavaScript............................................................................................................6
2.1.7 HTML.................................................................................................................7
2.1.8 CSS......................................................................................................................7
2.2 System Requirements.................................................................................................8
2.2.1 Hardware Requirements......................................................................................8
2.2.2 Software Requirements.......................................................................................9
SYSTEM DESIGN............................................................................................................10
3.1 Dataflow Diagram....................................................................................................10
3.1.1 System Dataflow Diagram................................................................................10
3.1.2 Blockchain Dataflow Diagram..........................................................................11
3.2 Sequence Diagram....................................................................................................11
SYSTEM IMPLEMENTATION........................................................................................13
4.1 Download & install truffle Ganache........................................................................13
4.2 Download & install Metamask wallet......................................................................13
4.3 Compiling the truffle project....................................................................................14
4.3.1 Migrations.sol code:..........................................................................................14
4.4 StructStorage.sol code..............................................................................................15
4.5 Running migrations..................................................................................................18
4.6 Creating a smart contract..........................................................................................19
4.7 Starting the local server............................................................................................43
4.8 Deploying smart contract to blockchain...................................................................44
4.9 Frontend...................................................................................................................55
TESTING...........................................................................................................................63
5.1 Manual Testing.........................................................................................................63
5.2 Automation Testing..................................................................................................64
5.3 White box testing.....................................................................................................64
5.3.1 White Box Testing Techniques:.........................................................................64
5.4 Black box testing......................................................................................................64
5.5 Unit testing...............................................................................................................65
5.6 Integration testing.....................................................................................................68
5.7 System testing..........................................................................................................69
5.8 Acceptance testing....................................................................................................70
5.9 Usability testing.......................................................................................................71
SAMPLE OUTPUT...........................................................................................................72
CONCLUSION AND FUTURE ENHANCEMENT.........................................................83
BIBLIOGRAPHY..............................................................................................................84
LIST OF FIGURES
LIST OF TABLES