Git Product home page Git Product logo

land-registration's Introduction

LAND REGISTRY

Land Registry is a simple Dapp based on the ethereum blockchain. It can be used as an alternative to the existing approach. Here the land owner registers the land details along with the land value by providing necessary proofs. Only a registrar or government authority who is registered as the superadmin can do the registration process. Lands coming under a particular area (eg., a village) can register to the system only through the superadmin assigned to that area. The smartcontract has been written in such a way that the owner has to transfer his full asset to the buyer and no partial transaction of the asset is allowed. Even though the registration process requires a government authority, the entire process is transparent and the transaction happens between the the two clients without any intermediaries.

Installation Guidlines

  1. The first dependency we need is Node Package Manager, or NPM, which comes with Node.js. You can see if you have node already installed by going to your terminal and typing:
node -v
  1. Secondly we need to install Angular 7 by typing the below:
npm install @angular/cli
  1. Next we need to install the node modules:
npm install
  1. The next dependency is the Truffle Framework, which allows us to build decentralized applications on the Ethereum blockchain. It provides a suite of tools that allow us to write smart contacts with the Solidity programming language. It also enables us to test our smart contracts and deploy them to the blockchain. It also gives us a place to develop our client-side application. You can install True with NPM in your command line like this:
npm install -g truffle
  1. The next dependency is Ganache. You can install it by typing the below in your terminal:
npm install -g ganache-cli

It will give us 10 external accounts with addresses on our local Ethereum blockchain. Each account is preloaded with 100 test ether.

  1. The next dependency is the Metamask extension for browser. In order to use the blockchain, we must connect to it. We'll have to install a special browser extension in order to use the Ethereum block chain. That's where metamask comes in. We'll be able to connect to our local Ethereum blockchain with our personal account, and interact with our smart contract.

  2. Now that we have our dependencies installed, let's start running our dApp!

  3. First, run the ganache by typing \ganache-cli" in your terminal.

  4. Now let's compile and run our migrations from the command line like this:

truffle compile
truffle migrate
  1. Copy the contract address to "web3.service.ts".

  2. Open the terminal the Dapp folder and run it by typing "ng serve". Open the browser and the dapp will be running in http://localhost:4200 by default.

land-registration's People

Contributors

husna696 avatar karthikapj-kba-iiitmk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

land-registration's Issues

Dependency Versions

would you be able to share the version of node this needs to run please? I have the most up to date version and I don't think it allows me to use the old packages as it says they are deprecated.

build error

ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/styles.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: ENOENT: no such file or directory, scandir 'C:\Users\Saad\Land-Registration-master\node_modules\node-sass\vendor' at Object.readdirSync (fs.js:790:3)
at Object.getInstalledBinaries (C:\Users\Saad\Land-Registration-master\node_modules\node-sass\lib\extensions.js:130:13)
at foundBinariesList (C:\Users\Saad\Land-Registration-master\node_modules\node-sass\lib\errors.js:20:15)
at foundBinaries (C:\Users\Saad\Land-Registration-master\node_modules\node-sass\lib\errors.js:15:5)
at Object.module.exports.missingBinary (C:\Users\Saad\Land-Registration-master\node_modules\node-sass\lib\errors.js:45:5)
at module.exports (C:\Users\Saad\Land-Registration-master\node_modules\node-sass\lib\binding.js:15:30)
at Object. (C:\Users\Saad\Land-Registration-master\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.sassLoader (C:\Users\Saad\Land-Registration-master\node_modules\sass-loader\lib\loader.js:46:72)
ERROR in src/app/web3.service.ts(2,22): error TS2307: Cannot find module 'truffle-contract'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.