How it-incubator-tech-mel/photer-app works
INCTAGRAM is a social photo-sharing application. Its main user flow is account access, creating and editing photo posts, then browsing feeds and profiles; account settings also support profile details and paid subscriptions. The graph preserves those distinct product areas and shared API/state layers. Some capabilities are identified from the file tree and README context, so their internal links are omitted where source excerpts do not establish the calls.
Main entry points: usePostsList.ts Profile post feed · authApi.ts Auth API · postsApi.ts Posts API · ProfileCard.tsx Profile card
Components 24
Account access
- Auth pages
src/app/(auth)/sign-in/page.tsx - Registration flow
src/features/auth/sign-up/hooks/useRegistration.tsx - Login flow
src/features/auth/sign-in/hooks/useLogInForm.ts - Auth API
src/features/auth/api/authApi.ts
Photo posts
- Public home feed
src/app/page.tsx - Post creation
src/features/posts/hooks/create/useFilterSave.ts - Post editing
src/features/posts/hooks/edit/useEditPost.ts - Profile post feed
src/features/posts/hooks/feed/usePostsList.ts - Post viewing
src/features/posts/hooks/view/usePostModal.ts - Posts API
src/features/posts/api/postsApi.ts - Post state
src/features/posts/model/postSlice.ts - Post domain types
src/features/posts/lib/post.types.ts
Profiles and billing
- Profile pages
src/app/profile/[id]/page.tsx - Profile card
src/widgets/profile-card/ui/ProfileCard.tsx - Profile editing
src/features/edit-profile/EditProfile.tsx - Profile API
src/features/edit-profile/api/profileApi.ts - Account and billing
src/features/edit-profile/hooks/useAccountManagement.ts
Shared platform
- App state
src/shared/state/store.ts - API foundation
src/shared/lib/baseApi.ts - Shared UI
src/shared/ui/index.ts
Other components
- Visitor or member
- Auth service
- Posts service
- Payment service
Connections 35
- Visitor or member → Auth pages: opens
- Auth pages → Login flow: renders
- Visitor or member → Registration flow: registers
src/features/auth/sign-up/hooks/useRegistration.tsx - Registration flow → Auth API: registers through
src/features/auth/sign-up/hooks/useRegistration.tsx - Login flow → Auth API: authenticates through
src/features/auth/sign-in/hooks/useLogInForm.ts - Auth API → API foundation: injects endpoints
src/features/auth/api/authApi.ts - Auth API → Auth service: requests
src/features/auth/api/authApi.ts - Visitor or member → Public home feed: browses
src/app/page.tsx - Public home feed → Posts service: fetches posts
src/app/page.tsx - Public home feed → Shared UI: renders notices
src/app/page.tsx - Visitor or member → Post creation: creates post
src/features/posts/hooks/create/useFilterSave.ts - Post creation → Post state: updates photos
src/features/posts/hooks/create/useFilterSave.ts - Post creation → Post domain types: uses photo settings
src/features/posts/hooks/create/useFilterSave.ts - Visitor or member → Post editing: edits post
src/features/posts/hooks/edit/useEditPost.ts - Post editing → Posts API: mutates posts
src/features/posts/hooks/edit/useEditPost.ts - Visitor or member → Profile post feed: browses profile
src/features/posts/hooks/feed/usePostsList.ts - Profile post feed → Posts API: fetches pages
src/features/posts/hooks/feed/usePostsList.ts - Profile post feed → Post state: tracks pages
src/features/posts/hooks/feed/usePostsList.ts - Visitor or member → Post viewing: opens post
src/features/posts/hooks/view/usePostModal.ts - Post viewing → Posts API: requests post data
src/features/posts/hooks/view/usePostModal.ts - Posts API → API foundation: injects endpoints
src/features/posts/api/postsApi.ts - Posts API → Posts service: requests
src/features/posts/api/postsApi.ts - Post state → Post domain types: models state
src/features/posts/model/postSlice.ts - Profile post feed → Post domain types: uses post data
src/features/posts/hooks/feed/usePostsList.ts - Visitor or member → Profile pages: opens profile
src/app/profile/[id]/page.tsx - Profile pages → Profile card: renders
src/app/profile/[id]/page.tsx - Profile card → Profile editing: offers editing
src/widgets/profile-card/ui/ProfileCard.tsx - Profile card → Profile post feed: shows posts
src/widgets/profile-card/ui/ProfileCard.tsx - Profile card → Profile API: loads profile data
src/widgets/profile-card/ui/ProfileCard.tsx - Visitor or member → Account and billing: manages account
- Account and billing → Profile API: queries subscriptions
src/features/edit-profile/hooks/useAccountManagement.ts - Account and billing → Auth API: reads user identity
src/features/edit-profile/hooks/useAccountManagement.ts - Account and billing → Payment service: creates subscription
src/features/edit-profile/hooks/useAccountManagement.ts - App state → API foundation: installs middleware
src/shared/state/store.ts - App state → Post state: registers reducer
src/shared/state/store.ts