How drbrookskim/gitmark works
Gitmark is a small social app for leaving posts (“traces”), browsing a live feed, reacting and commenting, and viewing one’s own posts. The main journey is sign in or sign up, enter the authenticated app, browse or write a post, then open its detail to like or comment. Firebase Authentication and Firestore provide identity and persistence. The excerpts show the main routes and data operations; the Firebase services are inferred from the SDK calls, and the README is empty.
Main entry points: App.tsx App routes · PostCard.tsx Post card · AuthPage.tsx Sign in / sign up · PostDetailPage.tsx Post and comments
Components 15
App and identity
- App routes
src/App.tsx - Sign in / sign up
src/pages/AuthPage.tsx - Auth state
src/contexts/AuthContext.tsx
Posts and discussion
- Live feed
src/pages/FeedPage.tsx - Write post
src/pages/WritePage.tsx - Post and comments
src/pages/PostDetailPage.tsx - Post card
src/components/PostCard.tsx
Profile and presentation
- My posts
src/pages/MyPage.tsx - Avatar
src/components/Avatar.tsx - Nickname rules
src/lib/pseudonym.ts - Time formatting
src/lib/time.ts
Firebase services
- Firebase client
src/firebase.ts - Firebase Auth
- Firestore
Other components
- Visitor
Connections 34
- Visitor → App routes: opens app
src/App.tsx - App routes → Auth state: provides auth
src/App.tsx - App routes → Sign in / sign up: routes to
src/App.tsx - App routes → Live feed: routes to
src/App.tsx - App routes → Write post: routes to
src/App.tsx - App routes → Post and comments: routes to
src/App.tsx - App routes → My posts: routes to
src/App.tsx - Sign in / sign up → Nickname rules: checks nickname
src/pages/AuthPage.tsx - Sign in / sign up → Firebase client: uses client
src/pages/AuthPage.tsx - Auth state → Firebase client: uses client
src/contexts/AuthContext.tsx - Auth state → Firebase Auth: observes session
src/contexts/AuthContext.tsx - Auth state → Firestore: loads user
src/contexts/AuthContext.tsx - Sign in / sign up → Firebase Auth: signs in or up
src/pages/AuthPage.tsx - Sign in / sign up → Firestore: creates user record
src/pages/AuthPage.tsx - Live feed → Firestore: subscribes to posts
src/pages/FeedPage.tsx - Live feed → Post card: renders posts
src/pages/FeedPage.tsx - Write post → Firebase client: uses client
src/pages/WritePage.tsx - Write post → Firestore: writes post
src/pages/WritePage.tsx - Post and comments → Firestore: reads and updates
src/pages/PostDetailPage.tsx - Post and comments → Avatar: renders author
src/pages/PostDetailPage.tsx - Post and comments → Nickname rules: formats nickname
src/pages/PostDetailPage.tsx - Post and comments → Time formatting: formats timestamps
src/pages/PostDetailPage.tsx - My posts → Firestore: subscribes to own posts
src/pages/MyPage.tsx - My posts → Post card: renders posts
src/pages/MyPage.tsx - My posts → Avatar: renders profile
src/pages/MyPage.tsx - My posts → Nickname rules: formats nickname
src/pages/MyPage.tsx - Post card → Firestore: updates likes and deletion
src/components/PostCard.tsx - Post card → Auth state: reads session
src/components/PostCard.tsx - Post card → Avatar: renders author
src/components/PostCard.tsx - Post card → Nickname rules: formats nickname
src/components/PostCard.tsx - Post card → Time formatting: formats timestamp
src/components/PostCard.tsx - Avatar → Nickname rules: gets initial
src/components/Avatar.tsx - Firebase client → Firebase Auth: initializes auth
src/firebase.ts - Firebase client → Firestore: initializes database
src/firebase.ts