Coder Social home page Coder Social logo

gautamsharma99 / blockchain- Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ankitsharma2023/blockchain-

0.0 0.0 0.0 32.82 MB

Home Page: https://blockchain-theta-black.vercel.app

License: GNU General Public License v3.0

JavaScript 30.18% Solidity 52.87% HTML 16.95%

blockchain-'s Introduction

FraudBlock

GitHub

Blockchain based Fake product identification Solution using QR Codes

Installation & Demo

FraudBlock

Packages Required:-

  • Truffle v5.6.7 (core: 5.6.7)
  • Ganache v7.5.0
  • Solidity v0.5.16 (solc-js)
  • Node v16.20.0
  • Web3.js v1.7.4
  • npm 7.5.1

Other Requirements:-

  1. Any chromium based browser i.e. Chrome
  2. Metamask browser extension

setup process

  1. Clone the project
git clone https://github.com/yogeshxd/ProjectM
  1. Extract the src.zip and verify that all the files are in the src folder only and not in src/src.

  2. Go to the project folder, open terminal there and run following command to install required node_modules:-

npm install
  1. Compile contract source files. (Compilation and deployment can be done using truffle migrate):-
truffle compile
  1. Open Ganache, (to setup local blockchain)
    • crerate new workspace
    • add truffle-config.js in truffle project
    • change port to 7545 in server settings (same as port in truffle-config.js)
  2. In chrome, open metamask
    • add new test network using
      • NETWORK ID (i.e. 5777 ,from Ganache Server settings)
      • RPC SERVER (i.e HTTP://127.0.0.1:7545 ,from Ganache Server settings)
      • CHAIN CODE (i.e. 1337)
    • import account using private key of any account from local blockchain available in Ganache.
  3. In terminal, run following commands:-
  • Run migrations to deploy contracts.
truffle migrate
  • To start a server and it will open a homepage (index.html) file in the default browser.
npm run dev 
  1. Login to metamask ,and connect the added account to local blockchain manually (i.e.localhost:3000)
  2. Interact with website

Psst... I have also added all the documents(reports, ppts, base paper etc.) incase anyone of you might wanna use it as your minor/major project.

blockchain-'s People

Contributors

yogeshxd avatar ankitsharma2023 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.