Coder Social home page Coder Social logo

tsonev85 / medtrace Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 365 KB

This DApp is intended to provide traceablity of medicinie, relying on the immutability of etherium network. All files storage is done through IPFS. It uses web3 and Metamask

JavaScript 71.07% HTML 22.24% CSS 6.69%
solidity dapp ipfs-api truffle ropsten testrpc web3js web3 metamask

medtrace's Introduction

MedTrace

This DApp is intended to provide traceablity of medicinie, relying on the immutability of etherium network. All files storage is done through IPFS. This Dapp uses web3 and Metamask, so its best to have it istalled.

AuthorityOracle - contract responsible for allowing addresses to produce, trade, sell medicine. ONLY authorized addresses gain access to transaction history of the medicine. MedTrace - main functionality - responsible for actions with medicine.

  1. You need ipfs daemon up and running:
  • ipfs daemon
  1. To deploy on local test network use the following commands in command prompt:
  • testrpc - run testrpc on your computer
  • truffle migrate --network development - deploy contract on test network
  1. to deploy on ropsten network you need geth client up and running:
  • geth --testnet --fast --rpc --rpcapi eth,net,web3,personal --bootnodes "enode://94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09@192.81.208.223:30303" - runs geth with fast sync and connects it to ropsten network (note: the specified bootnode may change)
  • geth attach http://127.0.0.1:8545 - open geth console (these are default values for geth)
  • personal.unlockAccount(eth.accounts[0]) and personal.unlockAccount(eth.accounts[1]) - unlock the first and second accounts. We will be using the first and second account to deploy contracts, you can change this in /migrations/1_deploy_contracts.js
  • truffle migrate --network ropsten - deploy to ropsten (eth.accounts[0] and eth.accounts[1] need to have some coins)
  1. To start server run this in main directory:
  • npm run dev

medtrace's People

Contributors

tsonev85 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.