Giter Club home page Giter Club logo

capstone-blockchain's Introduction

Projet Capstone 2017-2018

Web app représentant un systeme d'inscription/validation des UE qui fonctionne comme un smart contrat sur l'ethereum.

Requirements:

  • Nodejs minimum version 5.0
  • Npm minimum version 3.0

Installation

Install the latest version of Nodejs and Npm: https://nodejs.org/en/

For linux users:

sudo apt-get install -y nodejs

The application directory is /blockchain-app

Now you need to install truffle using NPM:

  • Go to the application directory and use the following command
npm install truffle

OR

  • Install it globally for all your applications with the following command
npm install -g truffle
  • Go to the application directory and run
npm install

AND

truffle compile

truffle migrate --network <development or rinkeby>

after you need the addresses of the deployed contracts so:

truffle networks and copy address of ue_manager then :

truffle console

in the console

SmartIdentity.deployed().then(function(inst){ return inst.setOwner('<ue_manager address>');})

then copy the address of SmartIdentity (use truffle networks) and do in the console:

ue_manager.deployed().then(function(inst){ return inst.createSmartId('<SmartIdentity address>');})

npm run dev

Important! For some users the default port for EthereumJS is not 9545, in that case use the following command when you run TestRPC:

testrpc -p 9545

Make sure you are using this adress for the provider in the app.js: http://127.0.0.1:9545

capstone-blockchain's People

Contributors

hassenome avatar freyj avatar svuylsteke avatar

Watchers

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