Skip to content

A guide to demoing the [[marketplace]] contract

Prerequisites

This documentation has been intended for readers with a basic understanding on the Solidity smart contract programming language and on basic web developing tools. In order to run, the demo requires the following software to be installed. For verified functionality, the specified versions are recommended:

Ubuntu 18.04.0 LTS

Node.js, version 8.9.0

MetaMask

Running an [[Ethereum]] client

Install dependencies

Before the first run, dependencies need to be installed for the test scripts and the status viewer.

cd scripts/
npm install

Sale Contract

  • Who Wants to build Smartcontracts and DApps. basic knowledge on Ethereum Eco-System and Solidity Language is necessary to understand These Concepts.

  • I’m writing this step-by-step guide and I wish it is the best way to explain what Smart Contracts are. So let's get started.

  • E-commerce involves buying and selling of goods or services. So mainly it has buyers and sellers.

  • The following example is made of ethereum blockchain using a point-to-point product trading system. Each user buys a product via their MetaMask, which leads to the deduction of the amount of ethereum in the buyer's wallet and at the same time is credited to the seller's account according to the smart contract deployed.

  • This sample does not follow the internal network in the previous sample It has got an ethereum test network called Kovan.

Truffle Commands

npm run truffle-migrate-reset

//gitter.im/kovan-testnet/faucet

Sourcecode

Armanriazi-Github-Marketplace-Sample Project

nodejs #metamask

[[Ethereum_Ecosystem_Research]]

[[smart-contract]]

[[Faucet]]

[[Kovan]]