Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

rebar create template=riak_core appid=myapp

branch: master

This branch is 0 commits ahead and 0 commits behind master

Merge pull request #3 from aschepis/master

update to use register instead of register_vnode_module
latest commit a5d4b16491
Ryan Zezeski authored December 28, 2011
Octocat-spinner-32 README.md minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core.app.src minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core.erl minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core.gitignore minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core.hrl initial riak_core rebar template March 25, 2011
Octocat-spinner-32 riak_core.md minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core.rebar.config minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core.template minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core_app.erl update to use register instead of register_vnode_module December 22, 2011
Octocat-spinner-32 riak_core_multinode.Makefile minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core_multinode.admin-runner minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core_multinode.app.config minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core_multinode.console minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core_multinode.dev1.config Make multinode template work with latest rebar September 06, 2011
Octocat-spinner-32 riak_core_multinode.dev2.config Make multinode template work with latest rebar September 06, 2011
Octocat-spinner-32 riak_core_multinode.dev3.config Make multinode template work with latest rebar September 06, 2011
Octocat-spinner-32 riak_core_multinode.erl.script minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core_multinode.nodetool Add multinode support April 04, 2011
Octocat-spinner-32 riak_core_multinode.rebar.config minor changes and cleanup for 1.0 October 06, 2011
Octocat-spinner-32 riak_core_multinode.reltool.config move app code to apps/ April 14, 2011
Octocat-spinner-32 riak_core_multinode.runner Add multinode support April 04, 2011
Octocat-spinner-32 riak_core_multinode.template Make multinode template work with latest rebar September 06, 2011
Octocat-spinner-32 riak_core_multinode.vars.config Make multinode template work with latest rebar September 06, 2011
Octocat-spinner-32 riak_core_multinode.vm.args Make multinode template work with latest rebar September 06, 2011
Octocat-spinner-32 riak_core_node_event_handler.erl Add noop ring/node event handlers. April 14, 2011
Octocat-spinner-32 riak_core_ring_event_handler.erl Add noop ring/node event handlers. April 14, 2011
Octocat-spinner-32 riak_core_ring_handler.erl Add noop ring/node event handlers. April 14, 2011
Octocat-spinner-32 riak_core_sup.erl Add multinode support April 04, 2011
Octocat-spinner-32 riak_core_vnode.erl minor changes and cleanup for 1.0 October 06, 2011
README.md

Rebar templates for generating riak_core applications

Usage

Install rebar. You can do that via homebrew:

brew update
brew install rebar

Drop these templates in ~/.rebar/templates/:

cp riak* ~/.rebar/templates

Then:

mkdir myapp
cd myapp
rebar create template=riak_core appid=myapp
git init
git commit -am "omg riak_core"
git push

Integrate this app into your node's rebar.config:

...
{deps, [
      {riak_core, "1.0.*", {git, "git://github.com/basho/riak_core", "1.0"}},
      {myapp, ".*", {git, "git@github.com:bij/myapp.git", "HEAD"}},
       ]}
...

Add it to your reltool.config, then generate a release with rebar generate. Fire up your node, attach, and test out the included public API's ping/0 function, which should return {pong, Partition}:

1> riak_core_node_watcher:services().
[riak_myapp]
2> myapp:ping().
{pong,753586781748746817198774991869333432010090217472}

Hey, distributed unicorns!

Something went wrong with that request. Please try again.