P2P Exchange is a decentralized peer-to-peer exchange platform developed using Node.js.
To run the P2P Exchange application, follow these simple steps:
-
Clone the repository:
git clone <repository_url> cd p2p-exchange
-
Install dependencies:
npm install
-
Start the application:
npm run start
This command will launch the P2P Exchange node.js application.
-
Start a secondary node:
npm run start:secondary
Use this command to start a secondary node for increased network reliability and scalability.
- Right now application does not support leader node election, therefore it is not fault tolerant. If the leader node goes down, the application will stop working. This can be fixed by implementing a leader election algorithm such as Raft or Paxos.
- Also, the application does not check if secondary node accepts leader order book. This can be fixed by implementing a consensus algorithm which is going to be used to validate if 1/2 + 1 of nodes are in agreement.