{"id":21940038,"url":"https://github.com/banknatchapol/ethereumdev","last_synced_at":"2026-04-12T12:42:45.762Z","repository":{"id":121106885,"uuid":"291398642","full_name":"BankNatchapol/EthereumDev","owner":"BankNatchapol","description":"Solidity : Create Voting Webapp using Blockchain backend.","archived":false,"fork":false,"pushed_at":"2020-08-30T14:45:44.000Z","size":547,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T15:13:13.310Z","etag":null,"topics":["dapp","sol","voting"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BankNatchapol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-30T04:19:58.000Z","updated_at":"2021-01-20T15:58:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3992a83-1f24-4d14-ad20-4d009d9621a0","html_url":"https://github.com/BankNatchapol/EthereumDev","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BankNatchapol/EthereumDev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankNatchapol%2FEthereumDev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankNatchapol%2FEthereumDev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankNatchapol%2FEthereumDev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankNatchapol%2FEthereumDev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BankNatchapol","download_url":"https://codeload.github.com/BankNatchapol/EthereumDev/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankNatchapol%2FEthereumDev/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260382207,"owners_count":23000670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dapp","sol","voting"],"created_at":"2024-11-29T02:28:41.370Z","updated_at":"2026-04-12T12:42:40.715Z","avatar_url":"https://github.com/BankNatchapol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EthereumWorkshop\n\n\u003cimg width=\"1631\" alt=\"Screen Shot 2562-09-24 at 12 43 08\" src=\"https://user-images.githubusercontent.com/459912/65484242-febaef00-dec8-11e9-9732-607a4990bdb8.png\"\u003e\n\n## Understand Solidity\n1. Variables and Types\n2. Solidity Events\n3. Function Modifiers\n4. Mappings and Structs\n5. Inheritance \u0026 Deployment\n\n## Deploy Simple Voting\n- Copy content of file Smart contarct/SimpleVoting.sol\n- Open remix ide at https://remix.ethereum.org\n- New file and put the code from first step (Smart contarct/SimpleVoting.sol)\n- Click run\n- Expand deploy panel\n- candidateNames = [\"Liverpool\", \"Manchester United\", \"Manchester City\", \"Arsenal\"]\n- transact\n- Done!\n\n## Run Simple Voting\n- We need webserver to run our DApp so we have 2 simple solutions here.\n\n### First solution - Chrome extension\n- Install chrome extesion https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb?hl=en\n- Open\n- Choose folder\n- Select \"DApp\"\n- Open http://127.0.0.1:8887 (open the link on web server url)\n- Click \"SimpleVoting.html\"\n\n### Second solution - use python\n- cd DApp/\n- run: python -m SimpleHTTPServer 8080\n- Open http://localhost:8080\n- Click \"SimpleVoting.html\"\n\n### Third solution - use docker\n```sh\n#!/bin/sh\nset -x\ndocker rm -f simplevote\ndocker run --name simplevote -p 8080:80 -v $PWD/DApp:/usr/share/nginx/html:ro -d nginx:alpine\nset +x\necho \"Go to http://localhost:8080/SimpleVoting.html\"\n```\n\n### Live demo ( with jQuery )\n- [https://dev.kulap.io/workshop/smartcontract/simplevote/SimpleVoting.html](https://dev.kulap.io/workshop/smartcontract/simplevote/SimpleVoting.html)\n\n### Live demo ( with Vuejs )\n- [https://dev.kulap.io/workshop/vuejs/simplevote/](https://dev.kulap.io/workshop/vuejs/simplevote/)\n\n## Deploy your own ERC-20 token\n- Copy content of file Smart contarct/ERC20Token.sol\n- Open remix ide at https://remix.ethereum.org\n- New file and put the code from first step (Smart contarct/ERC20Token.sol)\n- Click run\n- Choose ERC20Token\n- Expand deploy panel\n- _name = YOUR_COIN_NAME\n- _symbol = YOUR_COIN_SHORTNAME\n- _decimals = 2\n- transact\n- Done!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanknatchapol%2Fethereumdev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanknatchapol%2Fethereumdev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanknatchapol%2Fethereumdev/lists"}