Skip to content

AbdalrahmanBashir/DecentralizedContentSharingApp

Repository files navigation


Decentralized Content Sharing App: User Manual

diagram-export-11-18-2024-12_41_38-AM


Demo

Decentralized Content Sharing App

Table of Contents

  1. Introduction
  2. System Requirements
  3. Installation and Setup
  4. IPFS Configuration
  5. Running the Application
  6. Identity Verification with Privado ID
  7. Connecting to the Amoy Testnet
  8. Features

Introduction

Welcome to the Decentralized Content Sharing App, a DApp built to enable users to share, register, and verify content on the blockchain. This application leverages IPFS for decentralized storage and integrates Privado ID for secure identity verification.


System Requirements


Installation and Setup

Step 1: Clone the Repository

git clone https://github.com/AbdalrahmanBashir/DecentralizedContentSharingApp.git
cd DecentralizedContentSharingApp

Step 2: Install Frontend Dependencies

cd frontend
npm install

Step 3: Install Backend Dependencies

cd ../backend
npm install

Step 4: Install IPFS Local Node

Follow the official IPFS installation guide: Install IPFS.


IPFS Configuration

  1. Open the IPFS configuration file or use the following command in the terminal:

    ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
  2. Alternatively, on IPFS Desktop:

    • Go to SettingsAdvancedEdit JSON Configuration.

    • Add the following entry under the "API.HTTPHeaders" section:

      "Access-Control-Allow-Origin": ["*"]
  3. Save the changes and restart the IPFS local node.


Running the Application

Open two terminals:

Terminal 1: Start the Verifier Server

cd backend/VerifierServer
node verifier

Terminal 2: Start the Frontend Application

cd frontend
npm start

Identity Verification with Privado ID

  1. Install Privado ID on your smartphone. Download Privado ID
  2. Open the Privado ID Issuer UI on your browser.
  3. Search for the Age Credential Testing identity.
  4. Go to Credentials and follow the prompts to issue a credential.
    • The issued credential will be stored in your Privado ID wallet.
  5. Go back to the DApp website and scan the QR code using your Privado ID wallet.
  6. Follow the prompts to connect and verify your identity.
    • Once verified, you will have full access to the DApp.

Connecting to the Amoy Testnet

To connect to the Polygon Amoy Testnet:

  1. Follow this guide to add the Amoy Testnet to your Metamask: Amoy Testnet Guide.
  2. Use the Polygon Faucet to request test tokens for transactions.

Features

  • View Content: Browse registered content on the platform.
  • Add Content: Upload files to IPFS and register them on the blockchain.
  • Manage Content: Update details, add collaborators, and transfer ownership.
  • Identity Verification: Secure access with Privado ID for credential verification.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published