How drockparashar/snippetcove works
Project type and purpose
• This is a full-stack web application named “SnipCove,” a community-driven platform for saving, sharing, and discovering code snippets.
• Frontend: Next.js 15 + React + TypeScript + Tailwind CSS + Shadcn/ui.
• Backend: Node.js + Express.js + MongoDB (Mongoose) with JWT-based and GitHub OAuth authentication.
• External services: Cloudinary for image storage, Vercel for frontend hosting, Render for backend hosting, MongoDB Atlas for database.
File structure
• Top-level separation:
• client/ – Next.js 15 frontend (App Router, TypeScript, React Context).
• server/ – Express.js backend (controllers, routes, models, middlewares, config).
• client/src/app/ – Next.js app router organizes pages by feature: auth, dashboard, snippets, submit, users.
• client/src/components/ – shared UI components (CodeBlock, Navbar, SnippetCard, theme handling, Shadcn/ui primitives).
• server/controllers & server/routes – map HTTP endpoints to business logic.
• server/models – MongoDB schema definitions for User and Snippet.
• Config & middleware – DB connection, session, JWT, rate-limiting, input sanitization.
README for additional insights
• Tech stack and feature list confirm real-time updates, analytics dashboard, secure auth, responsive design, etc.