Giter VIP home page Giter VIP logo

erc20's Introduction

Full Stack ERC20 App

This repository contains EVERYTHING.

  1. Backend: ERC20 contract written in solidity
  2. Web Frontend: Web3.js DApp.
  3. Mobile Frontend: JSON markup for Jasonette

This document will explain how these all come together, and walk you through everything you need to do to deploy a contract to Ethereum, build a web app, and build a mobile app.

1. Backend

The "backend" is just a set of solidity contracts. This tutorial is not about writing ERC20 tokens or smart contracts so we're just going to use the most basic token possible.

zeppelin

99% of it is copy and pasted from Openzeppelin's Zeppelin-solidity repository. The following code are 100% copy and pastes:

1% of it is customization:

The ExampleToken is the only contract that I've tweaked, just to customize the symbol, decimals, and total supply

For simplicity, I didn't use any frameworks like Truffle.

Deployment

You can go to Remix, copy and paste all the files in contracts folder, and deploy to Ethereum.

There are many tutorials on how to do this online. Google them.

In my case, I have deployed it to rinkeby testnet, and the resulting contract address is 0x3823619872186eff668aad8192590faaffef6a5f.

We will use this contract address in the DApp to connect to the contract.


2. Web

The entire DApp is a single HTML file. It uses a JavaScript app framework called cell.js to implement the app in as simple manner as possible.

You can try it out here: https://gliechtenstein.github.io/erc20/web/

img

Note that:

Learn more about the web frontend: Web app tutorial

3. Mobile

The mobile frontend is powered by Jasonette, a markup driven approach to building mobile apps.

img

Jasonette is view-oriented. Therefore everything revolves around views. There are three views in the app:

  1. Main view: Display ERC20 token stats and send tokens
  2. Private key QR code scanner: For importing user's private key
  3. Receiver Public key QR code scanner: To send a token to another user, you need to scan the user's public key

Learn more about the mobile frontend: Mobile app tutorial

erc20's People

Contributors

gliechtenstein 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.