How yassinjouao/instagram-clone-frontend works
This is the React frontend of an Instagram clone. The principal workflow is authenticated users browsing a feed, opening posts, and creating posts; account access, search, and profile management are separate user-facing branches. The sampled code shows route selection, authentication state, several API requests, and UI composition. The README identifies a separate MERN backend, but does not document the frontend’s full feature set; some component behavior is therefore represented only where the source index records its imports.
Main entry points: Topbar.jsx Navigation bar · Post.jsx Post card · Profile.jsx Profile page · App.js Route controller
Components 21
Application and identity
- Route controller
src/App.js - Auth state
src/contexts/AuthContext/AuthContext.jsx - Login
src/components/pages/Login.jsx - Signup
src/components/pages/Signup.jsx - Token refresh
src/Tools/refrech.jsx
Social browsing
- Home page
src/components/pages/Home.jsx - Feed
src/components/Feed.jsx - Post card
src/components/Post.jsx - Post details
src/components/ShowPost.jsx - Create post
src/components/Share.jsx
Profiles and discovery
- Navigation bar
src/components/Topbar.jsx - Search results
src/components/Search.jsx - Mobile search
src/components/SearchBarMobile.jsx - Profile page
src/components/pages/Profile.jsx - Edit profile
src/components/EditProfile.jsx - Right sidebar
src/components/Rightbar.jsx
Other components
- Visitor
- Signed-in member
- Backend API
Connections 35
- Visitor → Route controller: opens
src/App.js - Signed-in member → Route controller: opens
src/App.js - Route controller → Auth state: reads state
src/App.js - Route controller → Home page: routes to
src/App.js - Route controller → Login: routes to
src/App.js - Route controller → Signup: routes to
src/App.js - Route controller → Profile page: routes to
src/App.js - Login → Auth state: dispatches
src/components/pages/Login.jsx - Login → Backend API: posts credentials
src/components/pages/Login.jsx - Auth state → Backend API: persists locally
src/contexts/AuthContext/AuthContext.jsx - Home page → Navigation bar: renders
src/components/pages/Home.jsx - Home page → Feed: renders
src/components/pages/Home.jsx - Home page → Right sidebar: renders
src/components/pages/Home.jsx - Feed → Post card: renders
src/components/Feed.jsx - Post card → Post details: opens
src/components/Post.jsx - Post card → Token refresh: configures requests
src/components/Post.jsx - Post card → Auth state: reads user
src/components/Post.jsx - Post card → Backend API: updates post
src/components/Post.jsx - Post card → Modal: opens
src/components/Post.jsx - Post card → Backdrop: shows
src/components/Post.jsx - Navigation bar → Create post: opens
src/components/Topbar.jsx - Navigation bar → Search results: renders results
src/components/Topbar.jsx - Navigation bar → Mobile search: renders
src/components/Topbar.jsx - Navigation bar → Backend API: searches users
src/components/Topbar.jsx - Navigation bar → Modal: opens
src/components/Topbar.jsx - Navigation bar → Backdrop: shows
src/components/Topbar.jsx - Profile page → Navigation bar: renders
src/components/pages/Profile.jsx - Profile page → Edit profile: opens
src/components/pages/Profile.jsx - Profile page → Modal: opens
src/components/pages/Profile.jsx - Profile page → Token refresh: configures requests
src/components/pages/Profile.jsx - Profile page → Auth state: dispatches follow state
src/components/pages/Profile.jsx - Profile page → Backend API: loads profile and posts
src/components/pages/Profile.jsx - Token refresh → Auth state: dispatches tokens
src/Tools/refrech.jsx - Token refresh → Backend API: requests token
src/Tools/refrech.jsx - Modal → Backdrop: renders
src/components/UI/Modal.jsx