How lakhmaisszineb/dapp-taazur works
TAAZUR is a decentralized crowdfunding dApp with CFD token governance, campaign funding, wallet features, administrative controls, and multisignature withdrawals. The main user flow runs from wallet-connected campaign discovery and contribution through project tracking and beneficiary actions; campaign creation uploads metadata to IPFS before blockchain publication. The graph combines sampled frontend and backend relationships with major capabilities documented in the README. Contract implementation files are not in the supplied tree, so blockchain contract internals are represented only as an external system.
Main entry points: App.jsx React application · CreateCampaignPage.jsx Campaign creation · contracts.js Contract access · projectDetails.js Project data
Components 29
dApp navigation
- React application
frontend/src/App.jsx - Wallet context
frontend/src/contexts/WalletContext.jsx - Wallet access
frontend/src/contexts/useWallet.js - Role checks
frontend/src/contexts/useRoles.js - Main layout
frontend/src/layouts/MainLayout.jsx - Wallet management
frontend/src/pages/WalletPage.jsx
Campaign lifecycle
- Campaign listing
frontend/src/pages/CampaignsPage.jsx - Campaign creation
frontend/src/pages/CreateCampaignPage.jsx - Fee preview
frontend/src/components/CampaignFeePreview.jsx - Contribution form
frontend/src/components/ContributionForm.jsx - Project details
frontend/src/pages/ProjectDetailsPage.jsx - Personal dashboard
frontend/src/pages/DashboardPage.jsx - Beneficiary actions
frontend/src/components/CampaignFinancialActions.jsx - Project data
frontend/src/services/projectDetails.js - Metadata upload client
frontend/src/services/campaignMetadata.js
Blockchain services
- Contract access
frontend/src/services/contracts.js - Transaction fee handling
frontend/src/services/transactionFees.js - Crowdfunding contracts
Governance and treasury
- Governance
frontend/src/pages/GovernancePage.jsx - Governance dashboard
frontend/src/components/GovernanceDashboard.jsx - Multisig withdrawals
frontend/src/pages/MultiSigPage.jsx - Withdrawal approvals
frontend/src/components/PendingWithdrawalApprovals.jsx - Administration
frontend/src/pages/AdminPage.jsx
Metadata backend
- Metadata API
backend/src/server.js - Metadata validation and image processing
backend/src/routes/campaign-metadata.js - IPFS pinning
backend/src/services/ipfs.js - Pinata IPFS
Other components
- Contributor / creator
- Browser wallet
Connections 33
- Contributor / creator → React application: uses
frontend/src/App.jsx - React application → Wallet context: wraps routes
frontend/src/App.jsx - React application → Main layout: renders routes
frontend/src/App.jsx - React application → Personal dashboard: routes to
frontend/src/App.jsx - React application → Campaign creation: routes to
frontend/src/App.jsx - React application → Contribution form: routes to
frontend/src/App.jsx - React application → Wallet management: routes to
frontend/src/App.jsx - React application → Governance: routes to
frontend/src/App.jsx - React application → Multisig withdrawals: routes to
frontend/src/App.jsx - React application → Administration: routes to
frontend/src/App.jsx - Wallet context → Wallet access: provides context
frontend/src/contexts/WalletContext.jsx - Wallet access → Browser wallet: accesses
- Campaign creation → Fee preview: renders
frontend/src/pages/CreateCampaignPage.jsx - Campaign creation → Metadata upload client: uploads metadata
frontend/src/pages/CreateCampaignPage.jsx - Campaign creation → Contract access: reads contracts
frontend/src/pages/CreateCampaignPage.jsx - Metadata upload client → Metadata API: submits metadata
- Campaign creation → Crowdfunding contracts: publishes campaign
- Campaign listing → Project data: loads projects
frontend/src/pages/CampaignsPage.jsx - Project details → Project data: loads details
frontend/src/pages/ProjectDetailsPage.jsx - Project data → Contract access: reads campaign data
frontend/src/services/projectDetails.js - Contract access → Crowdfunding contracts: reads and writes
frontend/src/services/contracts.js - Contract access → Transaction fee handling: sends with preview
frontend/src/services/contracts.js - Contribution form → Contract access: contributes
- Personal dashboard → Beneficiary actions: renders actions
frontend/src/pages/DashboardPage.jsx - Personal dashboard → Project data: loads personal data
- Governance → Governance dashboard: renders
frontend/src/pages/GovernancePage.jsx - Governance dashboard → Crowdfunding contracts: governs CFD tokens
- Multisig withdrawals → Withdrawal approvals: renders
frontend/src/pages/MultiSigPage.jsx - Withdrawal approvals → Crowdfunding contracts: submits approvals
- Administration → Role checks: checks permissions
- Metadata API → Metadata validation and image processing: mounts route
backend/src/server.js - Metadata validation and image processing → IPFS pinning: uploads metadata
backend/src/routes/campaign-metadata.js - IPFS pinning → Pinata IPFS: pins files
backend/src/services/ipfs.js