Skip to content

Block42World/cubik-crowdsale-frontfront

Repository files navigation

Block42

CUBIK token crowdsale frontend

About

The html frontend for CUBIK token crowdsale on Ethereum using Web3, refer to the crowdsale smart contract.

A demo is available here.

  • Working in both Main Ethereum Network and Ropsten Test Network
  • Working with MetaMask, local and Infura nodes are commented and can be used for debugging
  • Bootstrap theme and styled
  • Web3 1.0 beta 34 (MetaMask still having issues on Web3 1.0 at the time of writing)
  • A inlined version for websites can only use iframe (such as Wix)

Development

Prerequisites

Install dependencies

npm i

Watch and bundle JavaScript

watchify main.js -o js/bundle.js

Start web server in localhost with npm

npm start

(Optional) Inline page for iframe

inliner index.html > index_iframe.html

Modification

To use this crowdsale page for your token ICO, change the token and crowdsale contract address at main.js. Then includes the truffle built JSONs, or simple change the ABI at Cubik.json and CubikCrowdsale.json.

TODO

  • Optimize using Vue.js or React.js
  • Provide a better auto flatten method using NPM
  • Fix contract event feedback currently not working with MetaMask
  • Add better graphic for MetaMask install instruction

About

The Web3 frontend CUBIK token crowdsale.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published