Makes it about as easy as it gets to integrate smart-contracts into your Meteor project.
-
Install Truffle:
npm install -g truffle
-
Install Testrpc:
npm install -g ethereumjs-testrpc
-
Install meteor-truffle
git clone https://github.com/blockchain-hacklab/meteor-truffle.git cd meteor-truffle meteor npm install
Simply go to directory ./imports/lib/smart-contracts
and develop your smart-contracts just like in any other Truffle project.
Or even simpler; Import/Export this folder via a git submodule.
Simply import the smart-contract into your Meteor project, e.g. import MetaCoin from '../smart-contracts/build/contracts/MetaCoin.sol.js';
and use like in any other Ether-pudding project.
In above directory run:
meteor
and start an ethereum node (or TestRPC) w options similar to this
geth --rpc --rpccorsdomain="http://localhost:3000" --unlock=0 --testnet console