How lirazn7/dresscode---atualizado works
DressCode is a mobile social-fashion app: users authenticate, discover and view outfit posts, interact with creators, and manage profiles and closets; an AI stylist can suggest outfits from closet contents. The README describes Supabase, while the sampled runtime initializes Firebase, so the graph reflects Firebase-backed code rather than the README’s backend claim. Several screens are unsampled; their presence and imports are established by the source index, but uncertain internal call paths are omitted.
Main entry points: App.js App routes · firebase.js Firebase client · StylistChat.js AI stylist chat · postService.js Post interactions
Components 24
Application
- App routes
App.js
Identity
- Session context
src/contexts/AuthContext.js - Login
src/screens/LoginScreen.js - Registration
src/screens/RegisterScreen.js - Username setup
src/screens/SetUsernameScreen.js - Auth service
src/services/authService.js
Social Fashion
- Outfit feed
src/screens/VitrineScreen.js - Post interactions
src/services/postService.js - Post card
src/components/PostCard.js - Create post
src/screens/CreatePostScreen.js - Profile and follows
src/screens/ProfileScreen.js - User search
src/screens/SearchScreen.js - Moderation
src/screens/AdminScreen.js
Closet and Styling
- Closet screens
src/screens/ClosetScreen.js - Closet overview
src/screens/ClosetMainScreen.js - Closet categories
src/screens/ClosetCategoryScreen.js - Closet service
src/services/closetService.js - AI stylist chat
src/components/StylistChat.js - Styling suggestions
src/services/aiService.js
Cloud Services
- Firebase client
src/database/firebase.js - Image upload
src/services/storageService.js
Other components
- Fashion user
- Firebase services
- OpenRouter API
Connections 26
- Fashion user → App routes: uses
App.js - App routes → Session context: provides session
App.js - App routes → Login: routes to
App.js - App routes → Registration: routes to
App.js - App routes → Outfit feed: routes to
App.js - App routes → Profile and follows: routes to
App.js - App routes → Closet screens: routes to
App.js - App routes → Create post: routes to
App.js - App routes → Moderation: routes to
App.js - App routes → Username setup: routes to
App.js - App routes → User search: routes to
App.js - App routes → AI stylist chat: renders
App.js - User search → Profile and follows: opens profile
src/screens/SearchScreen.js - Outfit feed → Post interactions: loads and updates
src/screens/VitrineScreen.js - Profile and follows → Post interactions: uses post service
src/screens/ProfileScreen.js - AI stylist chat → Closet service: loads closet
src/components/StylistChat.js - AI stylist chat → Styling suggestions: requests suggestions
src/components/StylistChat.js - Styling suggestions → OpenRouter API: sends chat request
src/services/aiService.js - Session context → Firebase client: reads session profile
src/contexts/AuthContext.js - Auth service → Firebase client: authenticates and stores profile
src/services/authService.js - Post interactions → Firebase client: reads and writes social data
src/services/postService.js - Closet service → Firebase client: uses cloud data
src/services/closetService.js - Image upload → Firebase client: uploads media
src/services/storageService.js - Firebase client → Firebase services: connects to
src/database/firebase.js - Login → Auth service: uses authentication
src/screens/LoginScreen.js - Create post → Image upload: uploads image