- Node.js 16.0 later
- Docker 20.0 later
Execute the following command to generate a Docker image.
Modify the Dockerfile
as necessary.
docker build -t metamere .
The following command will create a Docker network called metamere-network
and start up 5
metamere nodes.
To change the number of nodes or port numbers, open startup.sh
and change the shell variable values.
./startup.sh
Execute the following command to generate the genesis block in the blockchain.
It must be executed before registering transaction data.
If you changed the port number in startup.sh
, you must change it here as well.
./initialize.sh
See examples
for information on registering data from a Node.js application.
The following command will set up the required libraries.
cd examples
npm install
The following command executes an example implementation of transaction data registration to the blockchain.
node write-transaction.js
The following command executes an example implementation of a transaction data reference to the blockchain.
node read-transactions.js
The following command will stop all metamere nodes.
./shutdown.sh
© Takuro Okada