Git Product home page Git Product logo

opentrack's Introduction

OpenTrack

A Blockchain and ML based smart contract

Installation Steps

We will use Truffle and Ganache-cli as a basic environment. Also , we will use http-server for hosting our Web Interface.

npm install -g truffle ganache-cli http-server

Install Metamask for interacting with Web Interface. Now, run ganache-cli and note down the mnemonic from the console output. Setup Metamask with the mnemonic and connect to "localhost:8545", you should see all the wallets ganache creates and now we can use them to call Smart Contract methods!.

Now run truffle migrate -network development. You will observe contract addresses written on the console, which are obtained after compilation and deployment done by truffle.

Note the contract addresses of ChangeOwnership and ProductManagement and replace it with the values in "web/js/utils.js". You need to change

window.pm.options.address = '<Product Management contract address>'
window.co.options.address = '<Change Ownership contract address>'

Host the web folder with the help of this command

http-server <foldername i.e web>

and visit the browser on the port localhost:8080.

Now you can perform various tasks like from building parts and products to their changing ownerships.

Note: Build car by clicking on 6 parts and filling the serial number of the car.

opentrack's People

Contributors

sidntrivedi012 avatar nightwarriorftw avatar bymayanksingh avatar

Watchers

James Cloos 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.