Built with Truffle's React Box
Consists of the platform pages - Sports betting, casino, house and more. The decent.bet website's repository can be found here
For a higher level overview on how the platform works, refer to this document
To work with the platform, you'll have to deploy the contract to a locally running testrpc instance.
-
Run TestRPC with the following configuration
To mimic testnet
testrpc --mnemonic "mimic soda meat inmate cup someone labor odor invest scout fat ketchup" -b 20 -l 6732810
For development
testrpc --mnemonic "mimic soda meat inmate cup someone labor odor invest scout fat ketchup" -l 6732810
-
Add a .env file to the current directory with the following variables
MNEMONIC='<MNEMONIC TO DEPLOY CONTRACTS AND CONTROL THE PLATFORM>' INFURA_KEY='<REGISTERED INFURA KEY>' DEFAULT_ACCOUNT='<DEFAULT ACCOUNT LINKED TO YOUR MNEMONIC>'
-
Migrate contracts to TestRPC
truffle migrate
-
Run the webpack server for front-end hot reloading. For now, smart contract changes must be manually recompiled and migrated.
npm run start
-
To build the application for production, use the build command. A production build will be in the build_webpack folder.
npm run build
-
Deploy the build files using a simple express server and pm2 or serve