smartdevb16 / Next.Js-BettingDapp-Casino_Coin-

Sample DAPP betting game built on Ethereum.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CasinoCoin

A simple decentralized Ethereum betting application built for educational purposes on the Rinkeby Network.

How it Works

  1. Allows users to bet test Ether on a number from one to 10.
  2. After 10 bets have been placed, the smart contract randomly selectes a winning number and deposits the balance of the contract into the winner(s) account(s). The terms of the contract are then reset.
  3. If no winners have been selected, the balance carries over into drawing (similar to the lottery).

Get Started

  1. Clone the project. git clone https://github.com/zmess24/CasinoCoin.git.
  2. Run the setup script. npm run install
  3. Run the example app. npm run dev

Initial Machine Setup

  1. Install Node 8.0.0 or greater. Need to run multiple versions of Node? Use nvm.
  2. Install Git.

Technologies

CasinoCoin is build using the following technologies:

Tech Description
React Fast, composable client-side components.
Next Minimalistic framework for server-rendered React applications.
Semantic UI React Development framework that helps create beautiful, responsive layouts using human-friendly HTML.
Solc JavaScript bindings for the Solidity compiler.
Ganache CLI Command line version of Ganache, your personal blockchain for Ethereum development.
Web3 API that allows you to interact with a local or remote ethereum node, using a HTTP or IPC connection.
Truffle Hdwallet Provider HD Wallet-enabled Web3 provider. Use it to sign transactions for addresses derived from a 12-word mnemonic.
Mocha Feature-rich and asynchronous JavaScript test framework running on Node.js and in the browser

About

Sample DAPP betting game built on Ethereum.

License:MIT License


Languages

Language:JavaScript 100.0%