A Stack Overflow-style community for developers: ask and answer coding questions, get an AI-generated answer, vote, save questions, follow tags and find jobs, all in one place.
Live demo: devflow-hub.vercel.app
- Questions and answers with a rich-text editor (TinyMCE) and syntax-highlighted code blocks (Prism).
- AI answers: generate a suggested answer to any question with the OpenAI API.
- Voting, views and saved collections for questions and answers.
- Tags and community pages to browse topics and other developers.
- Global search across questions, answers, users and tags, plus filters and pagination on every list.
- Job board powered by the JSearch API, pre-filtered to the visitor's country.
- Profiles with stats, top posts and editable details.
- Authentication with Clerk, synced to MongoDB through a webhook.
- Light and dark themes, responsive layout with a mobile nav.
Next.js 13 (App Router, Server Actions) · TypeScript · MongoDB with Mongoose · Clerk · Tailwind CSS and shadcn/ui · TinyMCE · Prism · Zod · OpenAI API
git clone https://github.com/tanwarAalok/DevFlow.git
cd DevFlow
npm installCreate .env.local:
MONGODB_URL=
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
WEBHOOK_SECRET= # Clerk webhook signing secret
NEXT_PUBLIC_TINY_EDITOR_API_KEY=
NEXT_PUBLIC_SERVER_URL=http://localhost:3000
NEXT_PUBLIC_IPGEO_API_KEY= # visitor location for the job board
OPENAI_API_KEY=Then run the dev server on http://localhost:3000:
npm run devapp/
(auth)/ sign-in and sign-up
(root)/ home, ask-question, question/[id], tags, community, collection, jobs, profile
api/ chatgpt (AI answers) and webhook (Clerk user sync)
components/ cards, forms, shared UI, shadcn/ui primitives
lib/actions/ server actions for questions, answers, users, tags, interactions, search, jobs
models/ Mongoose models
