GithubHelp home page GithubHelp logo

ykoyote / ethereumworkshop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kulapio/ethereumworkshop

0.0 0.0 0.0 1.15 MB

Ethereum workshop

Home Page: https://dev.kulap.io/workshop/smartcontract/simplevote/SimpleVoting.html

HTML 5.83% JavaScript 93.60% Vue 0.57%

ethereumworkshop's Introduction

EthereumWorkshop

Screen Shot 2562-09-24 at 12 43 08

Understand Solidity

  1. Variables and Types
  2. Solidity Events
  3. Function Modifiers
  4. Mappings and Structs
  5. Inheritance & Deployment

Deploy Simple Voting

  • Copy content of file Smart contarct/SimpleVoting.sol
  • Open remix ide at https://remix.ethereum.org
  • New file and put the code from first step (Smart contarct/SimpleVoting.sol)
  • Click run
  • Expand deploy panel
  • candidateNames = ["Liverpool", "Manchester United", "Manchester City", "Arsenal"]
  • transact
  • Done!

Run Simple Voting

  • We need webserver to run our DApp so we have 2 simple solutions here.

First solution - Chrome extension

Second solution - use python

Third solution - use docker

#!/bin/sh
set -x
docker rm -f simplevote
docker run --name simplevote -p 8080:80 -v $PWD/DApp:/usr/share/nginx/html:ro -d nginx:alpine
set +x
echo "Go to http://localhost:8080/SimpleVoting.html"

Live demo ( with jQuery )

Live demo ( with Vuejs )

Deploy your own ERC-20 token

  • Copy content of file Smart contarct/ERC20Token.sol
  • Open remix ide at https://remix.ethereum.org
  • New file and put the code from first step (Smart contarct/ERC20Token.sol)
  • Click run
  • Choose ERC20Token
  • Expand deploy panel
  • _name = YOUR_COIN_NAME
  • _symbol = YOUR_COIN_SHORTNAME
  • _decimals = 2
  • transact
  • Done!

ethereumworkshop's People

Contributors

boomfourleaf avatar iyawat avatar sainytk avatar totiz 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.