Skip to content

v1.0.0 - Lanzamiento Inicial

Latest

Choose a tag to compare

@JesusRosaB JesusRosaB released this 17 Feb 20:19

Identity Management System

This repository contains a basic identity management system using a combination of a smart contract in Solidity, a web application in Flask and HTML templates for the user interface.

Project Structure

templates/index.html

This file is the HTML template that serves as the user interface of the web application. It uses Jinja2 to dynamically render the content based on the data provided by app.py.

IdentityManager.sol

This is a smart contract written in Solidity that manages identities on the blockchain. The contract allows the creation, updating and querying of identities, ensuring that data is immutable and transparent.

app.py

This is the main file of the Flask application. It contains the paths and server logic that interacts with both the smart contract and the HTML template. Flask serves as the bridge between the frontend and the blockchain, handling HTTP requests and rendering responses in the browser.

requirements.txt

This file lists all the Python dependencies needed to run the Flask application. It includes Flask and other libraries needed for blockchain interaction and template handling.

Project Configuration

Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)
  • Metamask or any other development blockchain for Ethereum
  • Node.js and npm (to install and compile the smart contract)

Installation

  1. Clone this repository on your local machine.
    git clone https://github.com/JesusRosaB/DAPI-Py.git
    cd DAPI-Py
    
  2. Install the dependencies:
    pip install -r requirements.txt
    
  3. Run the Flask application:
    python app.py