How italobello/aric works
ARIC is a circular-economy community app: users discover reuse projects, record completions and mission progress, and share or discuss community ideas. The mobile app also supports account/profile management, rankings, and moderation. Its Go/Gin backend and PostgreSQL provide the online API; the frontend can use local demo data when API mode is unavailable. Frontend orchestration and service calls are evidenced by excerpts; backend wiring beyond documented API behavior is unsampled, so those links are left unverified.
Main entry points: api.ts API client · App.tsx App navigation · AppContext.tsx App state · CommunityContext.tsx Community state
Components 26
Mobile app
- App navigation
frontend/App.tsx - Route definitions
frontend/src/navigation.ts - App state
frontend/src/context/AppContext.tsx - Community state
frontend/src/context/CommunityContext.tsx
Identity and profile
- Auth state
frontend/src/context/AuthContext.tsx - API client
frontend/src/services/api.ts - Profile screen
frontend/src/screens/ProfileScreen.tsx
Projects and progress
- Project screens
frontend/src/screens/ProjectDetailScreen.tsx - Project loading
frontend/src/hooks/useProjects.ts - Project API
frontend/src/services/projects.ts - Missions and ranking
frontend/src/screens/MissionsScreen.tsx - Progress API
frontend/src/services/progress.ts
Community and safety
- Forum screen
frontend/src/screens/ForumScreen.tsx - Ask question
frontend/src/screens/AskQuestionScreen.tsx - Community API
frontend/src/services/community.ts - Moderation API
frontend/src/services/moderation.ts
Backend services
- Account and sessions
backend/src/login - Attempt limits
backend/src/acesso/limitador.go - Project workflows
backend/src/projeto - XP and leagues
backend/src/gamificacao - Mission progress
backend/src/missao/progresso.go - Forum workflows
backend/src/forum - Abuse reports
backend/src/denuncia - API entry point
backend/cmd/api/main.go - PostgreSQL
backend/src/infra/database/conn.go
Other components
- App user
Connections 18
- App user → App navigation: uses
frontend/App.tsx - App navigation → Auth state: provides auth
frontend/App.tsx - App navigation → App state: provides state
frontend/App.tsx - App navigation → Community state: provides community
frontend/App.tsx - App state → Project API: loads saved projects
frontend/src/context/AppContext.tsx - App state → Progress API: updates progress
frontend/src/context/AppContext.tsx - Project loading → Auth state: reads session
frontend/src/hooks/useProjects.ts - Project loading → Project API: fetches projects
frontend/src/hooks/useProjects.ts - Auth state → API client: authenticates requests
frontend/src/context/AuthContext.tsx - Community state → Community API: loads and mutates posts
frontend/src/context/CommunityContext.tsx - Forum screen → Community state: uses community state
frontend/src/screens/ForumScreen.tsx - App navigation → Route definitions: dispatches routes
frontend/App.tsx - API client → Account and sessions: sends API requests
- API client → Project workflows: sends API requests
- API client → Forum workflows: sends API requests
- API client → XP and leagues: sends API requests
- API client → Abuse reports: sends API requests
- API entry point → PostgreSQL: uses database