Coder Social home page Coder Social logo

soliditystarter's Introduction

Reference Playlist: https://www.youtube.com/playlist?list=PLS5SEs8ZftgW6kyVyD43dLXK0xpfiaJBJ

Github Fork: https://github.com/dappuniversity/starter_kit

Creating a Basic blockchain App.


Prerequisites:

#nodejs #truffle #ganache #Sublime as IDE, install package controller #npm

The document contains the high level commands that can be used to run this code in ethererum testnet.

#Commands to run the smartContract:

npm install to add all required dependencies first.

truffle compile to compile solidity code.

truffle migrate (--reset) to deploy the compiled code to local blockchain network.

truffle console to access blockchain network.

.exit to exit from truffle console.

Run test using: truffle test

#Few Internal Console commands to get started:

accounts = await web3.eth.getAccounts().

blockNumber = await web3.eth.getBlockNumber().

marketplace = await Marketplace.deployed().

marketplace.address.

name = await marketplace.name().

migrate to redeploy from inside truffle console

#Resources for deploying smartContract to one of the remote test networks. In this case, Kovan network

https://kovan.etherscan.io/ Kovan test network.

https://infura.io/ to get access to ethereum node. "[email protected]/" https://blog.infura.io/350000-developers-on-infura/

Get Free Test eth for Kovan network: https://gitter.im/kovan-testnet/faucet# (through github) https://ethdrop.dev/

#Useful NPM commands:

npm run start starts the local server frontend on http://localhost:3000/

#Reference Links:

https://stackoverflow.com/questions/67245415/how-to-change-account-in-truffleganache

https://medium.com/valist/how-to-connect-web3-js-to-metamask-in-2020-fee2b2edf58a

Diff b/w window.ethereum and window.web3: https://ethereum.stackexchange.com/questions/68293/difference-between-window-ethereum-and-window-web3

MetaMask/metamask-extension#8077

soliditystarter's People

Contributors

gwmccubbin avatar

Stargazers

Abhinandan mittal 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.