Skip to content

nimesha95/Wheels-Hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Wheels-Hub

A platform that uses blockchain technology to store the information about vehicles, their insuarace claims

Installation

This project requires both Docker and Node/NPM. After installing, download this repo and run the following commands to install dependencies for the transaction processor:

cd {project directory}/processor
npm install

And these commands to install dependencies for and build the client:

cd {project directory}/client
npm install

Running

Sawtooth Components

Use the included docker compose file to spin up some default Sawtooth components, including a validator and a REST API. Full instructions are available in the Sawtooth Documentation, but all you really need to know is, from the project directory, run this command to start Sawtooth up:

docker-compose up

And run this command to shut them down:

docker-compose down

Once running, you should be able to access the validator at tcp://localhost:4004 and the REST API at http://localhost:8008.

Transaction Processor

In a new terminal window, start up the transaction processor:

cd {project directory}/processor
npm start

Browser Client

In a new terminal window, start up the client: Start the client simply by opening localhost:3000 in any browser.