How atif409/url-shortner-frontend works
Project type and purpose
• This is the frontend of a full-stack URL shortening service built with React, Vite and Tailwind CSS.
• Its purpose is to provide a user interface for:
• Authentication (Sign Up, Login, Forgot/Change Password)
• Creating and managing shortened URLs (including smart links and custom aliases)
• Generating QR codes
• Viewing analytics (frontend stubs pending backend integration)
• Profile settings and other dashboard pages
File structure
• Top-level configs: .eslintrc.json, .prettierrc, tailwind.config.js, vite.config.mjs
• src/
• index.html + main.jsx: application entry
• components/: reusable UI building blocks (Buttons, Modals, Tables, etc.)
• pages/: route-level React components (Dashboard, CreateLinks, Analytics, etc.)
• routes/: routing setup with ProtectedRoute/PublicRoute wrappers
• services/: API client modules (user.api.js, link.api.js)
• context/: global state (themeContext)
• hooks/: custom hooks (useAuth, useThemeStorage)
• layout/: page layout wrapper (AppPageLayout)
• assets/, themes/, utils/: static assets, theming files, utility functions
README for insights
• Features listed confirm front-end responsibilities and integration points with backend endpoints for auth, link creation/management, QR code generation, analytics.
• No mention of direct database interactions on the front-end; all data is fetched via REST or HTTP APIs.