GithubHelp home page GithubHelp logo

doubleornothing's People

Contributors

gengmoqi avatar jiang-yifan avatar lucienlee avatar na-thundercore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

doubleornothing's Issues

new game

Getting Started
Fork this repo
Rename the forked repo as {{Your-github-username}}.github.io
ssh git clone [email protected]:{{Your-github-username}}/{{Your-github-username}}.github.io.git
or
https git clone https://github.com/{{Your-github-username}}/{{Your-github-username}}.github.io.git
cd {{Your-github-username}}.git.hub.io.git
git commit --allow-empty -m "bump"
git push
*Note: If you see the error “push declined due to email privacy restrictions”, you will need to allow command line pushes that expose your email address. This under “Settings”, “Emails”
It will take ~10 mins for Github to create your page. It can be accessed at
https://{{Your-github-username}}.github.io
While you wait, make sure to have Metamask installed
Set it up to a new Custom RPC url: https://mainnet-rpc.thundercore.com
When your page is built, you should be able to play the game
Understanding the Repo for development
Setup
We will be using node v8 or node v10

cd smart-contracts
yarn install or npm install
cd ../frontend
yarn install or npm install
yarn start or npm run start
Smart Contracts
This project uses Truffle to handle all of the smart contract related work.

In the /smart-contracts/contracts folder, you will find DoubleOrNothing.sol which contains the game logic.

After you make any updates to it, you will have to redeploy the contract.

yarn migrate --network development/thunder --reset or npm run migrate -- --network development/thunder --reset

** Development points to localhost:8545 Ganache

** To deploy on thunder, you must add a mnemonic to /smart-contracts/truffle-config.js

Frontend
The frontend is built using the create-react-app project with Typescript. To interact with the chain, we use Ethers.js.

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.