Code Monkey home page Code Monkey logo

johnosullivan / dmarket Goto Github PK

View Code? Open in Web Editor NEW
9.0 7.0 3.0 3.18 MB

dMarket is a distributed application (dApp) that leverages the Ethereum network and smart contracts to exchange ERC20, minted tokens, for goods and services within the network. A hybrid application is built on top with a web3 class to manipulate the chain as well as integrating biometric plugins to enable smart contracts to one signed on the device with the user’s private key.

Home Page: https://www.ethereum.org/

JavaScript 31.05% CSS 3.09% TypeScript 50.01% HTML 15.85%
dapp typescript ionic2 cryptocurrency erc20-tokens web3 metamask demo marketplace sass css ganache-cli ethereum solidity

dmarket's Introduction

dMarket (dApp)

decentralized MarketPlace Demo

Market is a distributed application (dApp) that leverages the Ethereum network and smart contracts to exchange ERC20, minted tokens, for goods and services within the network. A hybrid application is built on top with a web3 class to manipulate the chain as well as integrating biometric plugins to enable smart contracts to one signed on the device with the user’s private key. This project is meant to act as a case study the usecase of blockchain, ethereum, smart contracts and ipfs as a meaningful and reliable platforms.

Structure

dMarktet has two major moving parts that need to be running to ensure that dApp responds in the appropriate way. The first part would be ionic application is the end user client that would primaly talk to the ethereum network. The second portion is listener/indexer which is will save certain information off the chain for the application user experience like product search.

Prerequisites

Building

Install the dependencies in the root directory:

npm install

Starts the ethereum local test network via the Ganache client:

In a seperate terminal start a mongodb session:

mongod --dbpath .

Deploy the ERC20 coin contract to the local ethereum in root directory:

node deploycoin.js

Ensure the contract address matches in the address in the config.ts file. Next the indexer which will be listening to the smart contract events needs to be started:

node indexing.js

Lastly, launch the ionic application:

ionic serve

dmarket's People

Contributors

johnosullivan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.