How keirrysonmatheus/nexa works
Nexa is a social application where users authenticate, browse a feed, publish posts, and interact through likes, comments, and follows; profiles and search support discovery. The visible server routes and actions mediate profile and post changes, while Prisma provides database access and OneSignal handles documented web-push delivery. The README also documents login and registration, Google sign-in, image uploads, and notifications. Some post-interaction and notification implementation details are unsampled, so their links are marked unverified rather than treated as inspected.
Main entry points: client.ts Prisma client · posts/route.ts Post API · users.ts User actions · profile/route.ts Profile API
Components 23
Identity
- Sign-up form
components/signup-form.tsx - Google sign-in
components/google-auth-button.tsx - Auth client
lib/auth-client.ts - Auth service
lib/auth.ts - Auth route
app/api/auth/[...all]/route.ts
Social content
- Feed page
app/dashboard/page.tsx - Posts view
components/posts.tsx - Post actions
actions/posts.ts - Post API
app/api/posts/route.ts - User profile page
app/users/[user_apelido]/page.tsx - Profile view
components/user-profile.tsx - User actions
actions/users.ts - Profile API
app/api/profile/route.ts
Discovery
- Search page
app/busca/page.tsx - Search action
actions/search.ts
App services
- Prisma client
app/client.ts - PostgreSQL
- Image storage
lib/upload.ts
Notifications
- Push setup
components/OneSignalInit.tsx - Push sender
lib/onesignal.ts - OneSignal
- Notifications API
app/api/notifications/route.ts
Other components
- User
Connections 25
- User → Sign-up form: registers
components/signup-form.tsx - Sign-up form → Auth client: submits to
components/signup-form.tsx - Google sign-in → Auth client: signs in via
components/google-auth-button.tsx - Auth route → Auth service: dispatches to
app/api/auth/[...all]/route.ts - Auth service → Prisma client: uses adapter
lib/auth.ts - Prisma client → PostgreSQL: connects to
app/client.ts - Feed page → Posts view: renders
app/dashboard/page.tsx - Posts view → Post actions: loads posts
components/posts.tsx - User → Post API: creates post
- Post API → Prisma client: writes post
app/api/posts/route.ts - Post API → Image storage: saves image
app/api/posts/route.ts - User profile page → User actions: loads profile
app/users/[user_apelido]/page.tsx - User profile page → Profile view: renders
app/users/[user_apelido]/page.tsx - Profile view → User actions: manages follows
components/user-profile.tsx - User → Profile API: updates profile
- Profile API → Prisma client: updates user
app/api/profile/route.ts - Profile API → Image storage: saves image
app/api/profile/route.ts - Search page → Search action: searches via
actions/search.ts - User actions → Prisma client: queries users
actions/users.ts - User actions → Push sender: sends follow push
actions/users.ts - Post API → Push sender: sends post push
app/api/posts/route.ts - Push setup → OneSignal: initializes
- Push sender → OneSignal: delivers push
- User → Post actions: likes and comments
- User → Notifications API: views notifications