A Land Registration System on Private Blockchain
Explore the docs »
Report Bug
·
Linkedin
·
Mail
Table of Contents
In this project, I developed a Land Registration System using Hyperledger Fabric, a private blockchain, to securely store immutable land information and application details. Users can register and sell lands in a secure way. This solution will also prevent the possibility of selling a piece of land multiple times.
- Node.js
- Go
- Hyperledger Fabric
- MongoDB
In order to clone and run the project these have to be installed in your machine.
-
- Check if the installation was successfull or not with
git --version
and you should see a response likegit version x.x.x
- Check if the installation was successfull or not with
-
-
You'll be able to run the following command if you install nodejs:
node --version
and get an ouput like:vx.x.x
-
-
-
You'll be able to run the following command if you install yarn:
go version
and get an output like:go version gox.x.x
-
-
- You'll be able to run the following command if the installation was successfull:
docker images
and all the images will show up in the terminal
- You'll be able to run the following command if the installation was successfull:
git clone https://github.com/MohammadRokib/PropertyBlock
cd PropertyBlock/chaincode-api/api/
npm i
Put this .env
file in the PropertyBlock/caincode-api/api
folder with necessary database connection key:
MONGO_URI =
Type this command from the PropertyBlock/test-network
folder:
./startledger.sh
This will start the Fabric Network with 2 Peers 1 Orderer and Certificate Authority Server for each.
Go to folder: PropertyBlock/chaincode-api/api
-
Generate public & private keys for JWT authentication:
- Run this command:
node generateKeypair.js
This will create a public and a private key.
-
Start the server with this command:
npm start
You can figure out by looking at the code inside api folder. I will update here soon.
MohammadRokib - Linkedin - mohammadrokibkhan@gmail.com
GitHub: https://github.com/MohammadRokib