/solidity-sample-contract

A sample smart contract based on Solidity

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Sample Smart Contract written in Solidity

Tutorial for deploying a smart contract can be found here

Resources

Node.js
ganache-cli for running a local blockchain
Web3.js client-side library for accessing blockchain

Steps for setting up the development environment

  1. Initialize the node.js project
npm install
  1. Start ganache
ganache-cli
  1. In another terminal deploy the smart contract
truffle migrate --reset
  1. Now start the express Webserver
node demo.js