How amarnaath05/mern-freelance-marketplace works
Project type and purpose
• This is a full-stack MERN (MongoDB, Express.js, React.js, Node.js) freelance marketplace platform.
• Clients post projects, freelancers bid, collaborate, and get paid.
Main components of the system
a. Frontend (React.js + Vite + Tailwind CSS)
b. Backend API (Node.js + Express.js)
c. Database (MongoDB)
d. Authentication (JWT service within the backend)
e. Third-party services (Stripe/PayPal for payments, email provider, chat/message service)
f. Deployment platforms (Vercel for frontend, Render/Heroku for backend)
Relationships and interactions
• The user’s browser sends HTTP(S) requests to the Frontend (served via Vercel/CDN).
• Frontend invokes the Backend REST API over HTTPS.
• Backend handles business logic, issues/verifies JWTs, and CRUDs data in MongoDB.
• Backend integrates with Payment API (Stripe/PayPal) and Email/Chat services.
• MongoDB persists users, projects, bids, profiles.
• JWT tokens flow from backend to frontend for protected routes.
Architectural patterns and design principles
• Clear separation of concerns: UI layer vs. API layer vs. data layer
• RESTful API endpoints (Express.js controllers → services → data access)
• Stateless authentication with JWT
• Single-Page Application (SPA) for responsive UI
• Modular folder structure (client vs. server) implied by README
• Future extensibility: plug in chat, reviews, admin dashboards as separate modules/services
4. Security boundaries (JWT issuance, protected endpoints)
5. Pending features (Payments, Chat, Reviews) as “Future Modules” branching off the backend