- Introduction
- System Requirements
- Installation and Setup
- IPFS Configuration
- Running the Application
- Identity Verification with Privado ID
- Connecting to the Amoy Testnet
- Features
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.
- Metamask: Installed on your web browser. Download Metamask
- Node.js: Ensure Node.js is installed. Download Node.js
- IPFS Desktop: Installed and configured locally. Install IPFS
- Privado ID App: Installed on your smartphone. Download Privado ID
- Git: For cloning the repository. Download Git
git clone https://github.com/AbdalrahmanBashir/DecentralizedContentSharingApp.git
cd DecentralizedContentSharingApp
cd frontend
npm install
cd ../backend
npm install
Follow the official IPFS installation guide: Install IPFS.
-
Open the IPFS configuration file or use the following command in the terminal:
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
-
Alternatively, on IPFS Desktop:
-
Go to Settings → Advanced → Edit JSON Configuration.
-
Add the following entry under the
"API.HTTPHeaders"
section:"Access-Control-Allow-Origin": ["*"]
-
-
Save the changes and restart the IPFS local node.
Open two terminals:
cd backend/VerifierServer
node verifier
cd frontend
npm start
- Install Privado ID on your smartphone. Download Privado ID
- Open the Privado ID Issuer UI on your browser.
- Search for the Age Credential Testing identity.
- Go to Credentials and follow the prompts to issue a credential.
- The issued credential will be stored in your Privado ID wallet.
- Go back to the DApp website and scan the QR code using your Privado ID wallet.
- Follow the prompts to connect and verify your identity.
- Once verified, you will have full access to the DApp.
To connect to the Polygon Amoy Testnet:
- Follow this guide to add the Amoy Testnet to your Metamask: Amoy Testnet Guide.
- Use the Polygon Faucet to request test tokens for transactions.
- 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.
This project is licensed under the MIT License. See the LICENSE file for more details.