How pratikshakalbhor/nft_dapp works
This is a Stellar Soroban NFT DApp: users connect a wallet, then mint NFTs, browse their collection, list or buy assets, and view portfolio/profile details. React routes the workflow across feature pages; wallet and Soroban services handle blockchain interactions, while Firebase supports marketplace/activity/notification data and a separate Express upload API pins files to IPFS. The README documents auctions and dashboard capabilities, but their detailed runtime wiring is not shown. Edges are limited to excerpted imports/calls and README statements; unsampled implementation details are not inferred.
Main entry points: App.js App routing · MarketplacePage.js Marketplace · firebase.js Realtime database · soroban.js Soroban client
Components 27
React application
- App routing
src/App.js - Wallet session
src/context/WalletContext.js - Wallet connectors
src/services/walletService.js - NFT minting
src/pages/MintPage.js - Collection gallery
src/pages/GalleryPage.js - Marketplace
src/pages/MarketplacePage.js - NFT details
src/pages/NFTDetailPage.js - Portfolio dashboard
src/pages/DashboardPage.js - Public profile
src/pages/ProfilePage.js - Price predictor
src/components/AIPricePredictor.js - Rarity calculator
src/utils/RarityCalculator.js
Stellar blockchain
- Soroban client
src/utils/soroban.js - SNFT token
contract/contracts/snft-token/src/lib.rs - NFT marketplace contract
contract/contracts/nft-marketplace/src/lib.rs
App data
- Realtime database
src/services/firebase.js - Activity tracking
src/utils/activityService.js - Notifications
src/utils/notificationService.js - AI price service
src/services/aiService.js
Media upload
- Express API
backend/app.js - Upload endpoint
backend/routes/uploadRoutes.js - Upload handler
backend/controllers/uploadController.js - IPFS pinning
backend/services/ipfsService.js
Other components
- NFT user
- Wallet providers
- Stellar network
- Firebase service
- IPFS network
Connections 37
- NFT user → App routing: uses
README.md - App routing → NFT minting: routes to
src/App.js - App routing → Collection gallery: routes to
src/App.js - App routing → Marketplace: routes to
src/App.js - App routing → NFT details: routes to
src/App.js - App routing → Portfolio dashboard: routes to
src/App.js - App routing → Public profile: routes to
src/App.js - App routing → Soroban client: fetches NFTs
src/App.js - Wallet session → Wallet connectors: connects through
src/context/WalletContext.js - Wallet connectors → Wallet providers: connects and signs
src/services/walletService.js - NFT minting → Wallet connectors: signs transactions
src/pages/MintPage.js - Marketplace → Wallet connectors: signs transactions
src/pages/MarketplacePage.js - NFT minting → Soroban client: uses blockchain service
src/pages/MintPage.js - Marketplace → Soroban client: fetches NFTs
src/pages/MarketplacePage.js - Collection gallery → Soroban client: reads NFT data
src/pages/GalleryPage.js - NFT details → Soroban client: uses blockchain service
src/pages/NFTDetailPage.js - Soroban client → Stellar network: reads and submits
- Stellar network → SNFT token: executes
- Stellar network → NFT marketplace contract: executes
- Collection gallery → Realtime database: reads collection data
src/pages/GalleryPage.js - Marketplace → Realtime database: reads and updates listings
src/pages/MarketplacePage.js - NFT minting → Realtime database: stores NFT data
src/pages/MintPage.js - Public profile → Realtime database: reads profile data
src/pages/ProfilePage.js - Realtime database → Firebase service: persists data
- Marketplace → Activity tracking: records activity
src/pages/MarketplacePage.js - Activity tracking → Realtime database: writes and listens
src/utils/activityService.js - Notifications → Realtime database: reads notifications
src/utils/notificationService.js - Marketplace → Price predictor: renders predictor
src/pages/MarketplacePage.js - NFT details → Price predictor: uses predictor
src/pages/NFTDetailPage.js - Price predictor → AI price service: requests pricing
src/components/AIPricePredictor.js - Marketplace → Rarity calculator: calculates rarity
src/pages/MarketplacePage.js - NFT minting → Rarity calculator: calculates rarity
src/pages/MintPage.js - NFT details → Rarity calculator: calculates rarity
src/pages/NFTDetailPage.js - Express API → Upload endpoint: mounts API routes
backend/app.js - Upload endpoint → Upload handler: dispatches upload
backend/routes/uploadRoutes.js - Upload handler → IPFS pinning: pins file
backend/controllers/uploadController.js - IPFS pinning → IPFS network: stores content