Giter Site home page Giter Site logo

eth-todo's Introduction

Prerequisites

How tu run locally

  • Make sure Ganache is up and running
  • Run truffle migrate --network development

Connect Metamask

  • Create new Account on Metamask
  • Connect to localhost 8545 -- change the port in ganache from 7545 to 8545 before connecting
  • Import Ganache account
    • Open Ganache -- Accounts
    • Select the key from the address that has used eth and copy it
    • Paste the key in Metamask

How to run on Rinkeby testnet

We use Rinkeby testnet for this project. You will need some "test" ethereum to pay for fees. You can get some here: https://faucets.chain.link/rinkeby; https://testnet.help/en/ethfaucet/rinkeby

Rinkeby testnet should already be available on the Metamask wallet.

To deploy to Rinkeby you just need to run truffle migrate --network rinkeby

Using the application

Create a .secret file under root folder. Write inside it the security phrase (12 words) of the Metamask wallet. Be carefull with this! This can be used to gain access to your metamask wallet!

Create a second file called .secret-infura under the api folder. Paste the Infura url inside the file. It should be something like this: https://rinkeby.infura.io/v3/8f8bf...

Using the web application

Open a terminal and go under root folder. Run npm run dev

Using the API

Open a terminal and go under api folder. Create 3 files:

  • .secret-account -> paste in the account address from Metamask
  • .secret-contract-addr -> paste in the contract address from the blockchain
  • .secret-private-key -> Metamask Account private key; you can export it from Metamask -> Account details -> Export private key.

Open a terminal and navigate to the api folder. Run node eth-api.js. The API should be up and running.

eth-todo's People

Watchers

 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.