Home

Awesome

Meteor Embark (DEPRECATED)

⛑ It's recommended to use Embark proper, rather than this package.

Meteor Embark CLI Demo

Streamlined Ethereum Integration for Meteor

This package makes it insanely simple to start developing decentralized apps (dapps) in the Meteor environment you are already used to.

Install & Start (for OSX)

# install meteor
curl https://install.meteor.com/ | sh
# install ethereum
brew tap ethereum/ethereum
brew install ethereum
# clone repo
git clone https://github.com/hitchcott/meteor-embark
# go to example app
cd meteor-embark/example
# start meteor
EMBARK_DEBUG=1 meteor

Once Meteor starts it will take a few seconds to start a blockchain and mine the demo contract.

Then go to http://localhost:3000 and play with the example app!

Full Setup Instructions

Before you begin, make sure you have a basic understanding of ethereum and geth.

And just a friendly reminder that ethereum is still in it's early days and you are on the front line. Don't put your life savings into an ethereum smart contract -- at least not for a few years!

Make sure you have all the dependencies of embark installed. Meteor Embark currently uses Embark 1.0.2.

Set up your meteor project with the following config files, as per embark demo boilerplate (the embark way). This package assumes this configuration, so you don't need embark.yml.

This step will soon be automatic

# config files
config/
  blockahin.yml
  contracts.yml
  genesis.json
  password

Then include your Solidity .sol or Serpent .se contracts along side your project files, anywhere in your project (the meteor way).

# project files in regular meteor fashion
client/
  myHtml.html
  mySuperPublicContract.sol
  mySuperPublicContractInterfact.coffee
server/
  mySerpentContract.se
  mySolidityContract.sol
  myMethods.coffee
both/
  simpleChat.html
  simpleChat.css
  simpleChat.coffee
  simpleChat.sol

Then install the meteor package

meteor add hitchcott:embark

And that's it! You should be able to start your meteor project, and contracts will be automatically compiled on the relevant platform (client and/or server) and deployed to a blockchain.

Happy Dapp Developing!

What does it do?

You can then, for exmaple, simply call SimpleStorage.get() on either the client or the server.

Check out the demo app for more usage examples!

For more information about embark configuration, check the embark-framework repo.

## Configuration

Environment Variables:

TODO

v1
- implement the simulator (embark 1.0+)
- auto-generate config (via embark boilerplate) if it doesn't exist
- automatically maintain `contracts.yml`
- example project
- better docs

> v1
- mist support
- ipfs deploy option
- client only deploy option
- ensure all embark options are supported
- split contracts into seperate JS files on client (needed?)
- test framework integration
- configurable config file locations
- tests

Thanks to

License

MIT 2015, Chris Hitchcott