Skip to content

Unknown-Blaze/easya-hackathon

Repository files navigation

nGoDonate

Demo Video

https://drive.google.com/drive/folders/1AhDhGtqxIBAe7raqtm7aah3fBNZaKPHf?usp=sharing - Kindly access this via normal tab (not incognito)

React + Vite + FastAPI + XRP Blockchain App

Blockchain based, near transparent, trustworthy and secure donation platform

  • 🌐 React + Vite for a fast and modern frontend experience
  • ⚙️ FastAPI for a high-performance backend API in Python
  • 🔗 XRP Ledger (XRPL) for blockchain interactions (sending transactions, checking balances, etc.)

XRP Ledger Integration

The backend uses xrpl-py to interact with the XRP Ledger.

Feature Purpose
Mint NFTs Mints a new NFT on the XRP Ledger using the provided metadata and wallet seed.
Fetch NFTs Retrieves all NFTs associated with a specified XRP Ledger account.
Create Escrow Donations Creates time-locked escrow payments linked to milestone deadlines for secure, conditional donations.
Verify Milestones Verifies milestone completion and either releases or cancels escrowed funds accordingly.

Quick Start

1. Clone the Repository

git clone https://github.com/Unknown-Blaze/easya-hackathon.git
cd easya-hackathon

2. Backend Setup (FastAPI)

cd backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
  

requirements.txt

fastapi
uvicorn
xrpl-py
python-dotenv
firebase-admin
pydantic
email-validator
web3
  

Run the API

uvicorn app.main:app --reload

Default API URL: http://localhost:8000

3. Frontend Setup (React + Vite)

cd frontend
npm install
npm run dev
  

Frontend runs on: http://localhost:5173

XRP Donation API Endpoints

Endpoint Method Description
/donate POST Accept a donation transaction (via XRP payment)
/verify POST Verify the authenticity of a donation or wallet
/mint POST Mint a token (e.g., NFT) after successful verification
/token GET Retrieve information about a specific token
/latest-transactions GET Get a list of the latest donation transactions

Block explorer link - https://testnet.xrpl.org/accounts/r4sXNGwP85VZ4PQbceXD66Xp8cJHL6mT9B

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •