How alexferrer200x-ux/initial-project-structure works
Curious Minds is a project-publishing blog with account, discussion, contact, and administrative features. Visitors browse projects and open details; signed-in users can create and manage posts and interact through likes and comments. The React app routes these experiences through client state and an Axios API layer to an Express backend, which applies authentication and persists domain records in MongoDB. The excerpts show route mounting and several backend model interactions, but do not establish the client’s complete endpoint wiring; those links are omitted.
Main entry points: App.jsx Page router · authStore.js Authentication state · server.js Express server · api.js HTTP client
Components 32
Web application
- Page router
frontend/src/App.jsx - Project feed
frontend/src/pages/Home.jsx - Project detail
frontend/src/pages/PostPage.jsx - Project card
frontend/src/components/PostCard.jsx - Theme state
frontend/src/context/ThemeContext.jsx
Accounts and access
- Account pages
frontend/src/pages/Login.jsx - Registration page
frontend/src/pages/Register.jsx - Email verification
frontend/src/pages/VerifyEmail.jsx - Profile settings
frontend/src/pages/Settings.jsx - Authentication state
frontend/src/stores/authStore.js
Publishing and discussion
- Post authoring
frontend/src/pages/Create.jsx - Post editing
frontend/src/pages/EditPostPage.jsx - Member profile
frontend/src/pages/Profile.jsx - Post state
frontend/src/stores/postStore.js
Administration and contact
- Contact form
frontend/src/pages/Contact.jsx - Admin dashboard
frontend/src/pages/AdminDashboard.jsx
API and persistence
- HTTP client
frontend/src/services/api.js - Express server
backend/server.js - Auth routes
backend/routes/auth.js - Project routes
backend/routes/project.js - Admin routes
backend/routes/admin.js - Message routes
backend/routes/message.js - User routes
backend/routes/user.js - Upload routes
backend/routes/upload.js - Token authentication
backend/middleware/auth.js - Admin authorization
backend/middleware/adminAuth.js - User records
backend/models/User.js - Project records
backend/models/Project.js - Comment records
backend/models/Comment.js - Message records
backend/models/Message.js - Email delivery
backend/utils/emailService.js
Other components
- Visitor or member
Connections 48
- Visitor or member → Page router: opens
- Page router → Project feed: routes to
frontend/src/App.jsx - Page router → Project detail: routes to
frontend/src/App.jsx - Page router → Account pages: routes to
frontend/src/App.jsx - Page router → Registration page: routes to
frontend/src/App.jsx - Page router → Email verification: routes to
frontend/src/App.jsx - Page router → Profile settings: routes to
frontend/src/App.jsx - Page router → Post authoring: routes to
frontend/src/App.jsx - Page router → Post editing: routes to
frontend/src/App.jsx - Page router → Member profile: routes to
frontend/src/App.jsx - Page router → Contact form: routes to
frontend/src/App.jsx - Page router → Admin dashboard: routes to
frontend/src/App.jsx - Project feed → Post state: uses state
frontend/src/pages/Home.jsx - Project feed → Project card: renders
frontend/src/pages/Home.jsx - Project detail → Post state: uses state
frontend/src/pages/PostPage.jsx - Project detail → HTTP client: calls
frontend/src/pages/PostPage.jsx - Account pages → Authentication state: uses state
frontend/src/pages/Login.jsx - Registration page → Authentication state: uses state
frontend/src/pages/Register.jsx - Registration page → HTTP client: calls
frontend/src/pages/Register.jsx - Email verification → HTTP client: calls
frontend/src/pages/VerifyEmail.jsx - Profile settings → Authentication state: uses state
frontend/src/pages/Settings.jsx - Profile settings → HTTP client: calls
frontend/src/pages/Settings.jsx - Profile settings → Theme state: uses theme
frontend/src/pages/Settings.jsx - Post authoring → Post state: uses state
frontend/src/pages/Create.jsx - Post authoring → Authentication state: uses state
frontend/src/pages/Create.jsx - Post editing → Post state: uses state
frontend/src/pages/EditPostPage.jsx - Member profile → Post state: uses state
frontend/src/pages/Profile.jsx - Member profile → Authentication state: uses state
frontend/src/pages/Profile.jsx - Contact form → HTTP client: calls
frontend/src/pages/Contact.jsx - Contact form → Authentication state: uses state
frontend/src/pages/Contact.jsx - Admin dashboard → HTTP client: calls
frontend/src/pages/AdminDashboard.jsx - Admin dashboard → Authentication state: uses state
frontend/src/pages/AdminDashboard.jsx - Authentication state → HTTP client: calls
frontend/src/stores/authStore.js - Express server → Auth routes: mounts
backend/server.js - Express server → Project routes: mounts
backend/server.js - Express server → Admin routes: mounts
backend/server.js - Express server → Message routes: mounts
backend/server.js - Express server → User routes: mounts
backend/server.js - Express server → Upload routes: mounts
backend/server.js - Auth routes → User records: reads/writes
backend/routes/auth.js - Auth routes → Email delivery: sends mail
backend/routes/auth.js - Project routes → Project records: reads/writes
backend/routes/project.js - Project routes → User records: reads
backend/routes/project.js - Project routes → Comment records: reads/writes
backend/routes/project.js - Admin routes → Project records: reads/writes
backend/routes/admin.js - Admin routes → User records: reads/writes
backend/routes/admin.js - Admin routes → Comment records: reads/writes
backend/routes/admin.js - Admin routes → Message records: reads/writes
backend/routes/admin.js