Coder Social home page Coder Social logo

d3g3nerator / block-farm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnhckuo/block-farm

0.0 0.0 0.0 52.87 MB

A farming game built upon Ethereum platform.

Home Page: https://blockfarm.herokuapp.com/

License: MIT License

CSS 9.65% JavaScript 85.04% HTML 2.16% Shell 0.02% Batchfile 0.01% Solidity 3.13%

block-farm's Introduction

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

block-farm's People

Contributors

cjybryant avatar johnhckuo avatar kokokon avatar

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.