Git Product home page Git Product logo

de-petitionapp's Introduction

Welcome to The Decentralised Petition System👋

Modern e-Petition Systems build on centralised projects have the power to exploit the Petition in different ways like, using fake signatures by bots, deletion of petitions by other higher entities, etc. Keeping in mind these problems we have build a decentralised e-petition system with the help of Tezos ecosystem.

The front end is be built using React.js and Material UI. React is linked with to the Tezos blockchain using Taquito, Becan Wallet.

The smart contract would consist of two functions:

Creation -- Big Map is used to store data of petition on Blockchain with key as petition Number and Value as a Record containing Title, Content, No of signatures and a list containing map with key as address and value as a Nat. Signing system -- As an input, smart-contract requires the Petition Number in order to update the list of signature.No of signatures are incremented upon calling this function. Assertions are provided to check whether no two Signatures are same.

Taquito is used to interact with the blockchain and smart contracts on the backend using React. Using APIs on Jakarta Network with tzstats. https://api.jakarta.tzstats.com/explorer/bigmap/85462/values where 79760 acts as the id of the bigmap and displayed on the front-end.

Prerequisites

This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.

npm >= 6.4.1 node.js >= v8.16.0

Install

npm install

to download all the dependencies

Usage

npm run start

Deployment of Smart Contract

Smart Contract is deployed on Jakarta Network. Smart Contract hash value is KT1V4NS7FAJXNCtbfY6mHoDnrsz1yX8tKx8e

Demo

tuto

Live Site

https://depetition.netlify.app/

de-petitionapp's People

Contributors

abrahamvg avatar

Watchers

Chandransh Srivastava (sec-theta) avatar

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.