How adrianhajdin/social_media_app works
Project type and purpose
• From the file tree and README, this is a single-page, full-stack social media application.
• Frontend: React.js + TypeScript + Tailwind CSS + Shadcn UI.
• Backend: Appwrite (BaaS) providing Authentication, Database (users, posts, saves), and Storage (file uploads).
• State & data fetching: React Query (TanStack Query).
File structure
• Top-level config files (.eslintrc.json, tsconfig.json, vite.config.ts, tailwind.config.js, vercel.json).
• src/: main codebase
• src/main.tsx: app entry point.
• src/App.tsx: root component with router/providers.
• src/_auth & src/_root: layout + page folders (Signin, Signup, Home, Explore, Profile, AllUsers, Create/Edit Post, etc.).
• src/components: reusable UI components (forms, shared UI, shadcn UI primitives).
• src/context/AuthContext.tsx: React context for auth state.
• src/hooks: custom hooks (useDebounce).
• src/lib/appwrite: Appwrite SDK config + API wrappers.
• src/lib/react-query: QueryProvider + custom queries & keys.
• src/lib/utils.ts: helpers (class names, date formatting).
• src/types: TypeScript types/interfaces.
README for additional insights
• Confirms use of React, Appwrite, React Query, TypeScript, Tailwind CSS, Shadcn.
• Lists features: authentication, create/edit posts, like/save, explore, infinite scrolling, responsive UI.
• Backend responsibilities (Appwrite): auth, database, file storage.
Elements
• Clear component labels (e.g., “React Query Provider”, “AuthContext”, “Appwrite Database”)
• Annotations for key technologies/frameworks at each layer