How ujjwalgoyal19/devstalk-mvp-v1 works
Project type and purpose
• This is a full‑stack web application consisting of:
• A React/Redux single‑page application (“client” folder)
• A Node.js/Express REST API (“server” folder)
• Models indicating a database (e.g., MongoDB) for users and projects
• Purpose (inferred from file names and README): a LinkedIn‑style portfolio or project‑sharing platform where users can register/sign in, upload projects (with media or links), browse/filter a gallery of projects, and view user profiles.
File structure
A. Client (React+Redux)
• src/Components: UI components organized by feature (AuthForm, Navbar, Gallery, Project, User, Utilities)
• src/actions, src/reducers: Redux setup managing auth, projects, user state
• src/api/index.js: REST client for interacting with the server
• src/SessionState.js: session management wrapper around API and Redux
• src/sass: styling organized by abstracts, base, components, layout, pages
B. Server (Node/Express)
• index.js: Express app entry point
• controllers/: business logic for users and projects
• routes/: route definitions mapping HTTP verbs/paths to controllers
• models/: database schemas for user and project
• middleware/auth.js: request authentication
Detailed breakdown
• Browser
• React Components (AuthForm, Gallery, Navbar, ProjectPage, UserProfile)
• Redux: Actions (auth.js, projects.js, user.js) & Reducers (auth.js, projects.js)
• API Client (api/index.js)
• Express.js
• Routes (/users, /projects)
• Auth Middleware (JWT verification)
• Controllers (users.js, projects.js)
• Models (user.model.js, project.model.js)
• Database (MongoDB)
• Sass folder
• Static assets (fonts, images) served from client/public or via Express static