Git Product home page Git Product logo

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

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar

block-farm's Issues

Cannot sign up

Hey,

I tried signing up using the herokuapp but got "oops". I tried again and it said "email exists". I guess i t created (with error?).

I then tried to login but it says "please check your inbox" but I got no email.

Any way to sign up?

Truffle error

When running npm install -g truffle, I get this:

sudo npm install -g truffle
loadDep:truffle-contract- ▄ ╢█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"npm":">=3","node":">=6.5.0"} (current: {"loadDep:number-to-bn → ne ▌ ╢█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"npm":">=3","node":">=6.5.0"} (current:loadDep:strip-hex-prefix  ▀ ╢█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"npm":">=3","node":">=6.5.0"} (currloadDep:is-hex-prefixed   ▀ ╢█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"npm":">=3","node":">=6.5.0"} (curre

> [email protected] install /usr/local/lib/node_modules/truffle-init-webpack/node_modules/node-sass
> node scripts/install.js

sh: 1: node: not found
/usr/local/lib
└── (empty)

npm ERR! Linux 4.4.0-64-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "truffle"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: `node scripts/install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'node scripts/install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/ubuntu/D3-Accelerator/npm-debug.log
npm ERR! code 1

Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: The contract code couldn't be stored, please check your gas amount.

This command don't work.
sh truffle/Compile.sh
When i manually try to migrate by ,
cd truffle; //successful
truffle compile; // successful
truffle migrate --network development //error
I get,
Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: The contract code couldn't be stored, please check your gas amount.
I set the gas: 6721975 in truffle.js

also when i set gas: 6721976 get,
Error: Exceeds block gas limit.

i got this threshold from,
truffle console;
web3.eth.getBlock('latest').gasLimit;

Environment:
Truffle v4.1.5 (core: 4.1.5)
Solidity v0.4.21 (solc-js)

Any solution to run this project?

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.