How joe-ship-it-nice/joefriends-backend-sigma-mission-9 works
Joefriends is an authenticated social API. Clients register or log in, use a bearer token for protected actions, and can create or read posts and manage friend requests. The route handlers in index.js implement these workflows and use a configured Supabase client to reach Supabase Auth and PostgreSQL. The README documents the API capabilities and privacy rules; sampled source shows the route-level operations. Edges cite the file or documentation that supports each relationship.
Main entry points: index.js API routes · supabaseClient.js Client configuration · index.html API homepage
Components 14
API surface
- API routes
index.js - API homepage
index.html
Identity and access
- Registration
index.js - Login
index.js - Token verification
index.js - User profile
index.js
Social features
- User listing
index.js - Post operations
index.js - Friend requests
index.js - Friendships
index.js
Supabase platform
- Client configuration
supabaseClient.js - Supabase Auth
- PostgreSQL data
Other components
- API client
Connections 23
- API client → API routes: calls
readme.md - API client → API homepage: opens
readme.md - API routes → Registration: routes to
index.js - API routes → Login: routes to
index.js - API routes → User profile: routes to
index.js - API routes → Post operations: routes to
index.js - API routes → User listing: routes to
index.js - API routes → Friend requests: routes to
index.js - API routes → Friendships: routes to
index.js - Registration → Client configuration: creates client
index.js - Login → Client configuration: creates client
index.js - Token verification → Client configuration: creates client
index.js - Post operations → Client configuration: creates client
index.js - User listing → Client configuration: creates client
index.js - Friend requests → Client configuration: creates client
index.js - Friendships → Client configuration: creates client
index.js - Registration → Supabase Auth: registers account
index.js - Login → Supabase Auth: authenticates
index.js - Token verification → Supabase Auth: validates token
index.js - Post operations → PostgreSQL data: reads and writes
index.js - User listing → PostgreSQL data: reads users
index.js - Friend requests → PostgreSQL data: creates request
index.js - Friendships → PostgreSQL data: reads and updates
index.js