Giter Club home page Giter Club logo

loan-dapp-starter-kit's Introduction

loan-dapp-starter-kit

This dapp is accompanied by a series of Medium articles to help developers get started with AZTEC.

DEMO: https://youtu.be/LRt1SKB2514

The code base is split into 3 main folders.

  1. client (The frontend react code that interfaces with web3 and graph-ql)
  2. contracts (The solidity contracts deployed to ganache that interact with AZTEC)
  3. graph (The graph-node mappings that index the local blockchain)

This repo requires the following minimum versions installed in the developer enviroment:

Truffle v5.0.12 (core: 5.0.12)

Solidity - 0.5.4 (solc-js)

Node v11.13.0

Web3.js v1.0.0-beta.37

Yarn - 1.15

Getting started:

  1. git clone [email protected]:AztecProtocol/loan-dapp-starter-kit.git

  2. cd loan-dapp-starter-kit

  3. cp .env.test .env

This copies the local file to a local .env file that ganache will use to deterministically create test accounts to make local development easier.

  1. yarn install

  2. cd client && yarn install

  3. cd .. && yarn start

The start script will do the following:

  • Start ganache, importing any accounts from the .env file
  • Compile and migrate both the dApp contracts and AZTEC and deploy the contracts the the local blockchain
  • Start a docker container that runs the graph-node
  • Build the graph-node mappings and deploy them to the graph-node
  • Copy the truffle build artefacts to the client for interaction with the contracts (ABIs)
  1. In a new terminal window yarn client

This command will run the create-react-app and host the client at localhost:3000

Navigate to http://localhost:3000 and click the restore account button.

Ganache has been started with 3 deterministic development accounts, each funded with 1000 ETH (Wahoo). You can restore the first account by using the seed phrase office shallow practice favorite diary review floor quote faith initial foot squeeze.

Enter any password to encrypt the hot-wallet keystore vault and press restore to enter the dApp!

loan-dapp-starter-kit's People

Contributors

joeandrews avatar leilawang avatar thomas-waite avatar dependabot[bot] 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.