Skip to content

juv1nsk1/Grenache-Microservice-P2P

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Install Dependencies

To run this project, you need to install the required dependencies. Open your terminal and run the following command:

npm install --save grenache-nodejs-ws grenache-nodejs-link grenache-grape

Run Two Server Instances

Run two Grape servers to handle the communication between the nodes. Open two separate terminal windows and execute the following commands:

DEBUG=* npx grape --dp 20001 --dc 32 --aph 30001 --bn '127.0.0.1:20001'
DEBUG=* npx grape --dp 20002 --dc 32 --aph 40001 --bn '127.0.0.1:20002'

Run the Project

Now that the servers are running, execute the project by running the following command:

npx ts-node src/main.ts 

About

Distributed orderbook using grenache, a micro-framework for connecting microservices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published