How itisthenikhilsingh/cloudsharewebapp works
CloudShare is a React frontend for uploading, organizing, sharing, and downloading files, with credit-based plans and transaction history. The principal workflow runs through the authenticated dashboard: users upload files, review recent uploads, then manage or share files; public-link visitors can view and download shared files. Landing-page marketing, credit tracking, subscriptions, and transactions are separate product branches. API endpoint definitions and sampled page code establish the frontend’s backend interactions; backend implementation details are not present in this repository.
Main entry points: App.jsx App router · MyFiles.jsx My files · apiEndpoints.js API endpoints · DashboardLayout.jsx Dashboard layout
Components 26
App and access
- App router
src/App.jsx - Clerk identity
- Dashboard layout
src/layout/DashboardLayout.jsx - Navbar
src/components/Navbar.jsx - Side menu
src/components/SideMenu.jsx
File workflows
- Dashboard
src/pages/Dashboard.jsx - Dashboard upload
src/components/DashboardUpload.jsx - Recent files
src/components/RecentFiles.jsx - Upload page
src/pages/Upload.jsx - Upload box
src/components/UploadBox.jsx - My files
src/pages/MyFiles.jsx - File card
src/components/FileCard.jsx - File list row
src/components/FileListRow.jsx - Modal
src/components/Modal.jsx - Link share modal
src/components/LinkShareModal.jsx - Public file view
src/pages/PublicFileView.jsx - API endpoints
src/util/apiEndpoints.js
Credits and billing
- User credits
src/context/UserCreditsContext.jsx - Credits display
src/components/CreditsDisplay.jsx - Subscription
src/pages/Subscription.jsx - Transactions
src/pages/Transactions.jsx
Product presentation
- Landing page
src/pages/Landing.jsx - Landing sections
src/components/landing
Other components
- Visitor or user
- CloudShare API
- Razorpay checkout
Connections 37
- Visitor or user → App router: visits
src/App.jsx - App router → Clerk identity: gates routes
src/App.jsx - App router → Dashboard: routes to
src/App.jsx - App router → Upload page: routes to
src/App.jsx - App router → My files: routes to
src/App.jsx - App router → Public file view: routes to
src/App.jsx - App router → Subscription: routes to
src/App.jsx - App router → Transactions: routes to
src/App.jsx - App router → User credits: provides
src/App.jsx - Visitor or user → Landing page: browses
- Landing page → Landing sections: renders
src/pages/Landing.jsx - Dashboard → Dashboard layout: renders within
src/pages/Dashboard.jsx - Dashboard → Dashboard upload: renders
src/pages/Dashboard.jsx - Dashboard → Recent files: renders
src/pages/Dashboard.jsx - Dashboard → API endpoints: fetches and uploads
src/pages/Dashboard.jsx - Upload page → Dashboard layout: renders within
src/pages/Upload.jsx - Upload page → Upload box: renders
src/pages/Upload.jsx - Upload page → API endpoints: uploads files
src/pages/Upload.jsx - My files → Dashboard layout: renders within
src/pages/MyFiles.jsx - My files → API endpoints: manages files
src/pages/MyFiles.jsx - My files → File card: renders
src/pages/MyFiles.jsx - My files → File list row: renders
src/pages/MyFiles.jsx - My files → Link share modal: opens
src/pages/MyFiles.jsx - My files → Modal: uses dialogs
src/pages/MyFiles.jsx - Public file view → API endpoints: fetches and downloads
src/pages/PublicFileView.jsx - Public file view → Link share modal: renders
src/pages/PublicFileView.jsx - API endpoints → CloudShare API: defines endpoints
src/util/apiEndpoints.js - Dashboard layout → Navbar: renders
src/layout/DashboardLayout.jsx - Dashboard layout → Side menu: renders
src/layout/DashboardLayout.jsx - User credits → API endpoints: fetches credits
src/context/UserCreditsContext.jsx - Navbar → Credits display: renders
src/components/Navbar.jsx - Subscription → Dashboard layout: renders within
src/pages/Subscription.jsx - Subscription → User credits: reads and updates
src/pages/Subscription.jsx - Subscription → API endpoints: creates and verifies orders
src/pages/Subscription.jsx - Subscription → Razorpay checkout: opens checkout
src/pages/Subscription.jsx - Transactions → Dashboard layout: renders within
src/pages/Transactions.jsx - Transactions → API endpoints: fetches transactions
src/pages/Transactions.jsx