Giter VIP home page Giter VIP logo

marinimau / public_administration_blockchain_certified_document_sharing Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.15 MB

A dApp to distribute blockchain certified documents from PAs to citizens. All the features are accessible via REST api.

License: Other

Python 44.50% CSS 2.91% JavaScript 4.02% HTML 47.74% Solidity 0.84%
blockchain django-rest-framework dapp smart-contracts ethereum-dapp public-administration openapi3 abcde-agile-method

public_administration_blockchain_certified_document_sharing's Introduction

License: CC0-1.0

Public Administration Blockchain Certified Document Sharing

A dApp to distribute blockchain certified documents from PAs to citizens. All the features are accessible via REST api.

Citizen related features are accessible also via frontend.

Getting Started

$ git clone https://github.com/marinimau/public_administration_blockchain_certified_document_sharing.git
$ cd public_administration_blockchain_certified_document_sharing
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
$ python3 manage.py makemigrations user
$ python3 manage.py makemigrations document
$ python3 manage.py makemigrations transaction
$ python3 manage.py migrate
$ python3 manage.py runserver

Note that you will need to create a super user (using "createsuperuser" command) and then you will need to create PA, operator, and citizen using the admin interface at http://127.0.0.1:8000/admin/.

IMPORTANT: use valid Etherum credential for the operator, and ensure that he as some Ether in his balance (default testnet is Rinkeby, you can change it in settings)

Test the project

$ python3 manage.py test

Features

  • Citizens and PA operators management
  • Document creation and update (by version creation)
  • Public and private documents: if a document is private citizen must have read permission
  • Document version inherits permissions from document
  • Pa management: an operator can update (create versions) only for documents owned by his PA, an operator can view only public documents or private documents (if they are owned by his PA)
  • Automatic document SC and document version (transaction in the document SC) deploy
  • Automatic fingerprint validation in download phase.
  • SC operator authentication based on whitelist
  • Citizen can add to favorites documents

OpenApi documentation

The documentation is available at http://127.0.0.1:8000/documentation/.

Note that only endpoints accessible with current authorization are shown:

  • if you are unauthorized you see only public endpoints
  • if you are authorized as citizen you see public + citizen endpoints
  • if you are authorized as pa operator you see public + operator endpoints

Author

public_administration_blockchain_certified_document_sharing's People

Contributors

marinimau avatar

Watchers

 avatar  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.