A full-stack MERN Developer Q&A platform with AI-powered moderation and automated abuse control, designed to simulate real-world community systems like Stack Overflow.
Live URL: https://codequery-app.netlify.app/
- Authentication: JWT-based with bcrypt password hashing.
- AI Moderation System: Server-side content analysis using Groq LLM to detect abuse, spam, and harassment.
- Strike System: Automated enforcement — users are permanently blocked after 3 violations.
- Rate Limiting: Custom request throttling (login + post/reply) using express-rate-limit to prevent abuse and brute-force attacks.
- Admin Panel: Full moderation dashboard with analytics, flagged content review, user control (block/unblock), and platform insights.
- Notifications: In-app notifications for replies and moderation warnings.
- Search: Full-text search across questions and tags.
- Frontend: React.js, Vite, Lucide React, Framer Motion.
- Backend: Node.js, Express.js, MongoDB Atlas, Mongoose.
- AI: Groq SDK.
- Security: JWT, bcrypt, express-rate-limit.
- Navigate to the
backenddirectory:cd backend - Install dependencies:
npm install
- Create a
.envfile and fill in your credentials:MONGO_URI: Your MongoDB connection string.JWT_SECRET: A secret key for JWT.GROQ_API_KEY: Your Groq API key (get it from console.groq.com).CLOUDINARY_CLOUD_NAME: Your cloudinary cloud name.CLOUDINARY_API_KEY: Your cloudinary api key.CLOUDINARY_API_SECRET: Your cloudinary api seceret key.
- Start the server:
npm start
- Navigate to the
frontenddirectory:cd frontend - Install dependencies:
npm install
- Start the development server:
npm run dev
To access the admin panel, you must manually change the role of a user to admin in your MongoDB database.
- Backend: Layered architecture (Controllers, Routes, Models, Services, Middleware).
- Frontend: Component-based with React Context for state management.

