Skip to content

henrypalacios/mystery_number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mystery number game

This is a game DApp created with a Smart Contract Ethereum and UI client with React.

The interaction of the project is represented in the following way: Mystery Number Diagram

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

  • node.js
  • npm
  • truffle

Installing

With make (Unix)

  • Compile, migrate, and Deploy Contract and App React

    make start

    this option only works with Unix environments with make installed.

Compile/Migrate manually

  • Compile and migrate the contract

      truffle migrate
      cp ./build_contract/contracts/Gaming.json ./client-app/src/contracts-api/artifacts/Gaming.json

    this will create a build folder and copy to client react.

  • Installing Dependencies in client Application

    cd ./client-app && npm install
    npm start

Running the test

Migrating with Truffle Ethereum test network

  • Active truffle Develop mode.
      truffle develop
    on truffle prompt:
      truffle(develop)> test

Migrating using an alternative GUI blockchain wiht Ganash

For that it's necessary to have Ganash software installed.

  • Migrate the contract to the network.

      truffle migrate

    check the configuration in truffle-config.js

  • Run the tests.

       truffle test

    or intereacting with the console

     truffle console
     truffle(development)> test

Built With

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published