Git Product home page Git Product logo

meta2k20's Introduction

steps to run the code on local machine with Ganache !

  1. pull the code in specific folder(ex:Election)
  2. run npm install to install dependencies(if error try command with administrator privilage or use 'sudo')
      2-a) run npm install [email protected] --save
      2-b) add node modules folder to .gitignore file
  3. open local blockchian i.e ganache (will provide u 10 accounts )
  4. run command "truffle compile" in Election folder
  5. run command "truffle migrate --reset" in same folder
  6. run npm start (start development server)
  7. web page will show metamask popup
  8. click on import account through seed phrase
  9. paste 12 words seed phrase from ganache to metamask
  10. set password
  11. you are all set to go !

Note : You need to run step 4,5,8,9 every time you restart of open new instance of Ganache

steps to run the code on on Ropsten test network!

  1. pull the code in specific folder(ex:Election)
  2. run npm install to install dependencies (if error try command with administrator privilage or use 'sudo')
      2-a) run npm install [email protected] --save
  3. run command truffle compile in Election folder
  4. customizing Metamask and Infura>
      4-a) Register on Infura.io website, create project & copy project ID.
      4-b) Download metamask extension for browser ,Register on it.set password and save the 12 word phrase somewhere.
      4-c) Create s secret.json file whose structure is - {
         "mnemonic": "12 word phrase",
         "projectId": "e98bfc46....."
         }
  5. add secret.json file & node modules folder to .gitignore file
  6. run command "truffle migrate --reset --network ropsten" in same folder (it will take some time)
  7. run npm start (start development server)
  8. web page will show metamask popup , enter the password which you have set at the start
    ,
  9. you are all set to go !

Note : step 3,5,6 & all section of 4 are on time step. Do not repeat every time you start the website


Firebase deployment steps are not explained here!

Sample Work :









meta2k20's People

Contributors

yash-bhange avatar

Stargazers

 avatar  avatar

Watchers

 avatar

meta2k20's Issues

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.