Skip to content

zgz715/Block-Farm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Block Farm

A farming game built upon Ethereum platform.

image

Getting Started

Prerequisites

1. TestRPC

npm install -g ethereumjs-testrpc 

2. Truffle

npm install -g truffle 

3. Meteor

curl https://install.meteor.com/ | sh

Running the DApp

First, you need get your own ethereum client node. And the easiest way to do this is either installing light-weight ethereum wallet or using testrpc. In our case, we use testrpc by typing the following command in to your terminal/command line:

testrpc

Now, you need to deploy the smart contracts to the local private chain you just set up. We've already wrote a script to get all the trivial things done. For Mac/Linux users, just go to the Block-Farm directory and execute the script by typing:

sh truffle/Compile.sh

For Windows users, please type:

truffle/Compile.bat

It should take a while for truffle to deploy all the contracts to testrpc. Once it is done, There should be all the address of each contract shown on the console, just copy them and update the default contract address in app/client/lib/contract.js.

After finishing all these steps, change your current path to the app folder and execute:

meteor npm install

Then type the following command to start buliding our app

meteor

Congratulations! Now just type localhost:3000 in your web browser and you are good to go!

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A farming game built upon Ethereum platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.0%
  • CSS 9.7%
  • Solidity 3.1%
  • HTML 2.2%