Gambling Roulette DApp built on top of Aion Network Blockchain
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts Added numberRound Variable Jan 30, 2019
img Moved favicon Jan 24, 2019
src Took out Aiwa private enabling Jan 25, 2019
.gitignore Hosted Version 1.0 Jan 23, 2019
LICENSE Hosted Version 1.0 Jan 23, 2019
README.md Update README.md Jan 24, 2019
build.js Hosted Version 1.0 Jan 23, 2019
index.html Moved favicon Jan 24, 2019
package-lock.json Hosted Version 1.0 Jan 23, 2019
package.json Hosted Version 1.0 Jan 23, 2019
webpack.config.js Hosted Version 1.0 Jan 23, 2019

README.md

Aion Animal Roulette

Four Animals in a Row

This is the repository for the Aion Animal Roulette Demo! Feel free to clone, fork, change, and do whatever you want to with this repo! Everything here is built on top of the Aion Network.

Prerequisites

  1. Install Node.js & NPM if you haven't already NPM comes pre-packaged with Node, so you only have to follow the one link.

  2. Once you've got NPM on your computer, install Webpack, Webpack CLI, and http-server:

    npm i -g webpack webpack-cli http-server
  3. Grab your Nodesmith URL. If you don't have Nodesmith setup, follow our setup guide.

    Your URL should look something like this: https://api.nodesmith.io/v1/aion/testnet/jsonrpc?apiKey=abcdef123456abcdf123456abcdef123456. Make sure you select Testnet (Mastery) from the dropdown menu, otherwise you'll be building your dApp on the Mainnet network.

  4. Finally, get the latest version of the AIWA Chrome extension install. You can also install AIWA on the Brave browser. If you don't have AIWA setup, follow our setup guide.

Install

  1. Clone this repository:

    git clone https://github.com/aion-kimcodeashian/aion-roulette.git
  2. Open src/js/index.js and edit line 48 with your Nodesmith URL. It should look something like this:

    47  // Fallback Nodesmith Connection
    48  web3 = new Web3(new Web3.providers.HttpProvider("https://api.nodesmith.io/v1/aion/testnet/jsonrpc?apiKey=abcdef123456abcdf123456abcdef123456"));
    49
    50 // Contract Instance
  3. Install all the NPM dependencies:

    npm install
  4. Start the local HTTP Server:

    http-server
  5. Go to http://localhost:8080/

Rebuilding after Making Changes

  1. When you make any changes to the code you'll have to rebuild the project:

    npm run-script build
  2. Then just refresh your browser to see your changes!