This is a Next.js project bootstrapped with create-next-app.
npm installCreate a .env.local file in the project root and add your API key. The server reads the variables at build/start time.
DEEPSEEK_API_KEY=sk-your-key-here
# Optional overrides
# DEEPSEEK_API_URL=https://api.deepseek.com/v3.2_speciale_expires_on_20251215
# DEEPSEEK_MODEL=deepseek-v3.2_speciale_expires_on_20251215
⚠️ Never commit.env.localor share your real key publicly.
npm run devThen open http://localhost:3000 to use HomeworkHelper. Type a homework question (or add screenshots) and the app will call the /api/solve endpoint, which proxies the request to DeepSeek and streams back a step-by-step solution.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
curl -X POST http://localhost:3000/api/solve \
-H "Content-Type: application/json" \
-d '{"question":"Explain how to solve 2x + 5 = 15"}'You should receive a JSON payload containing the generated answer.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.