Coder Social home page Coder Social logo

blockchain-developer-bootcamp-final-project's Introduction

Allowance DApp

Project Description

Allowance dApp streamlines the transfer of funds from a "parent" address to a "child" address

  • Set a "parent" and "child" account
  • Parent account, deposit ETH into contract
  • Withdraw ETH out of contract, with limitations on how much and when

Accessing the project

https://allowance-dapp.netlify.app/

Demo

https://loom.com/share/497296b691754e8c9d9dd60a578de415

Directory structure

.
├── contracts/              // Solidity smart contracts
├── docs/
│   ├── avoiding_common_attacks.md
│   └── design_pattern_decisions.md
├── migrations/             // Truffle migrations
├── frontend/               // Web App
├── test/                   // Mocha + Chai contract tests
├── utils/                  // Test utility
├── deployed_addresses.txt  // Contract addresses on Ropsten
├── README.md               // You are here!
├── ...

Usage

Clone repository to local directory:

git clone https://github.com/rteeter/blockchain-developer-bootcamp-final-project.git

Install dependencies

Prerequisite: You must have node.js and npm installed

npm install -g truffle

Install Live Server as an extension in Visual Studio Code

Running locally

Navigate into blockchain-developer-bootcamp-final-project folder

npm install
truffle compile
  • Navigate to the frontend folder and select the index.html file
  • Open Live Server by right clicking index.html and selecting "Open with Live Server"
  • The DApp should open a new or window within your default browser

Important Things to Consider

When interacting with the DApp:

  • You will need two MetaMask accounts: one for the parent account, one for the child account
  • Make sure to switch both MetaMask accounts to the Ropsten blockchain network
  • If in need of test ETH: https://faucet.ropsten.be/

Run unit tests

truffle test

blockchain-developer-bootcamp-final-project's People

Contributors

rteeter avatar

Stargazers

BrettskiPy avatar

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.