How mnjaulhaq/dashboard_rafly works
NantiKita is a wedding-invitation service with public guest invitations and a client dashboard. Guests view invitation data, record that they opened an invitation, and submit RSVP responses and wishes; clients sign in to manage guest lists and review invitation data. The Express server routes API requests to authentication, public-invitation, and dashboard handlers backed by MySQL. The excerpts show these server-side flows and some dashboard API calls; the invitation-page implementation and several dashboard features are not fully sampled, so those links are not inferred.
Main entry points: server.js Express server · auth.js Authentication API · dashboard.js Dashboard API · db.js MySQL connection pool
Components 13
Web interfaces
- Invitation page
client/js/script.js - Client dashboard
client/dashboard/script.js
API handlers
- Express server
server/src/server.js - Public invitation API
server/src/routes/public.js - Authentication API
server/src/routes/auth.js - Dashboard API
server/src/routes/dashboard.js
Shared services
- Session authentication
server/src/middleware/auth.js - CORS and CSRF
server/src/middleware/security.js - API data formatting
server/src/format.js
Persistence
- MySQL connection pool
server/src/db.js - MySQL database
server/schema.sql
Other components
- Invitation guest
- Invitation client
Connections 20
- Invitation guest → Invitation page: opens
- Invitation guest → Public invitation API: submits RSVP
server/src/routes/public.js - Public invitation API → MySQL connection pool: reads and writes
server/src/routes/public.js - Public invitation API → API data formatting: formats time
server/src/routes/public.js - Invitation client → Client dashboard: manages guests
- Client dashboard → Authentication API: requests login
client/dashboard/script.js - Client dashboard → Dashboard API: manages guest data
client/dashboard/script.js - Express server → Authentication API: mounts route
server/src/server.js - Express server → Public invitation API: mounts route
server/src/server.js - Express server → Dashboard API: mounts route
server/src/server.js - Express server → CORS and CSRF: applies middleware
server/src/server.js - Express server → Session authentication: checks secret
server/src/server.js - Authentication API → Session authentication: authenticates session
server/src/routes/auth.js - Authentication API → MySQL connection pool: checks credentials
server/src/routes/auth.js - Authentication API → CORS and CSRF: uses client key
server/src/routes/auth.js - Dashboard API → Session authentication: requires login
server/src/routes/dashboard.js - Dashboard API → MySQL connection pool: reads and writes
server/src/routes/dashboard.js - Dashboard API → API data formatting: formats response
server/src/routes/dashboard.js - Session authentication → MySQL connection pool: loads user
server/src/middleware/auth.js - MySQL connection pool → MySQL database: queries