A small full-stack app that lets Deepseek (via MCP-style API calls) generate practice questions, grade answers with explanations, and support follow-up Q&A. The app keeps lightweight local memory to reduce repeated questions.
- Node.js 18+ (built-in
fetchis used on the server) .envin the repo root containingDEEPSEEK_API_KEY=...- Optionally:
DEEPSEEK_API_URLandDEEPSEEK_MODEL(defaults to Deepseek chat completions endpoint anddeepseek-chat).
npm installRuns server (Express + TS) on http://localhost:4000 and Vite React client on http://localhost:5173 with API proxy.
npm run devnpm run build
npm run start # starts server from distserver/– Express + TypeScript API/api/quizgenerate questions/api/gradegrade answers + explanations/api/askfollow-up chat
client/– Vite + React (TS) UI with localStorage memory and quiz/chat views
- Answers are hidden until after you submit; grading may trigger a short AI call for explanations.
- Local memory (question prompts) lives in
localStoragekeyquizMemoryto ask Deepseek to avoid duplicates. - If Deepseek ever returns non-JSON, the server will surface an error; re-try or adjust the prompt.