Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cryemo/Block-Farm

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Block Farm

A farming game built upon Ethereum platform.

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 DApp built upon Ethereum platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.8%
  • CSS 10.0%
  • HTML 2.2%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.