This is the reference implementation of Hyperledger. Hyperledger is a protocol for creating and transferring assets on decentralised ledgers. It's designed to be run in environments where the set of replicating nodes is known. All the resources in the system are exposed through a hypermedia interface to allow for loose coupling between parties, especially the clients.
This software is currently in beta so run at your own risk.
Prerequisites; Elixir v1.0.4, PostgreSQL, Node (npm)
To install the server:
- Install dependencies with
mix deps.get
- Modify the
DATABASE_URL
environment variable in the.env
file to reference your Postgres user - Create a database with
mix ecto.create
- Run the migrations with
mix ecto.migrate
- Run
npm install
to install tools for asset compilation - Create a database entry for the local node; run
iex -S mix
and then run> Hyperledger.Node.create(1, System.get_env("NODE_URL"), System.get_env("PUBLIC_KEY"))
- Start the server with
mix phoenix.server
The server should now be running at localhost:4000
.