Skip to content

Blockchain-based land registry system that enables users to buy and sell land online through a secure and transparent platform for verified transactions.

License

Notifications You must be signed in to change notification settings

rebin03/TerraBloc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup and Installation

This project is built using React, TypeScript, Node.js, Express.js, Web3.js, Truffle, Ganache, and Solidity. It consists of a client-side application, a server-side application, and a smart contract for local deployment.

Prerequisites

Before getting started, make sure you have the following tools installed on your machine:

  • Node.js
  • Truffle
  • Ganache
  • Metamask browser extension

Installation

To set up the project, follow these steps:

  1. Clone the repository.

  2. Run the following command from the client, server, and smartcontract directories to install the required dependencies:

    npm install
  3. Install the Metamask extension in your browser to interact with the smart contract.

Configuration

Server Configuration

  1. In the server directory, create a .env file and add the following environment variables:

    • RPC_URL: The RPC URL of the network where the smart contract will be deployed.
    • NFT_STORAGE_KEY: The API key for NFT storage.
    • PORT: The port number for the server.

Client Configuration

  1. In the client directory, create a .env file and add the following environment variable:

    • REACT_APP_MAPBOX_API_KEY: The API key for Mapbox.

Smart Contract Configuration

  1. In the smartcontract directory, create a .env file and add the following environment variables:

    • HDWALLET_MNEMONIC: The mnemonic for the HD wallet.
    • RPC_URL: The RPC URL of the network where the smart contract will be deployed.

Running the Project

To run the project, follow these steps:

  1. In the smartcontract directory, run the following command to add the ABI of the smart contract to the client and server directories:

    npm start
  2. In the server directory, run the following command to start the server:

    npm start
  3. In the client directory, run the following command to start the client:

    npm start

Usage

Once the project is running, you can access the client application in your browser. Make sure the Metamask extension is connected to the appropriate network to interact with the smart contract.

License

This project is licensed under the MIT License.

About

Blockchain-based land registry system that enables users to buy and sell land online through a secure and transparent platform for verified transactions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 74.8%
  • JavaScript 15.5%
  • Solidity 7.9%
  • CSS 1.3%
  • HTML 0.5%