DeutschMind is a full-stack learning application that turns German vocabulary into a visual knowledge graph. It combines spaced repetition, personal learning preferences, text and image analysis, and asynchronous AI-assisted vocabulary expansion.
- Interactive vocabulary graph with topic-based learning paths
- Four-dimensional knowledge model: recognition, recall, context, and production
- Spaced-repetition review queue
- Registration and JWT-based authentication
- Isolated data for each user
- Text and image analysis with background AI jobs
- Progressive Web App frontend
- German/Russian interface switch with localized backend errors
- PostgreSQL, Redis/BullMQ, and S3-compatible object storage
- Legacy JSON mode for a quick local demo without infrastructure
Authentication and language switch |
Spaced-repetition practice |
Vocabulary details and AI expansion |
Asynchronous material analysis |
Progress and learning preferences |
Interactive vocabulary knowledge map |
| Area | Technologies |
|---|---|
| Frontend | React 18, Vite, PWA |
| Backend | Node.js, Express, Zod |
| Database | PostgreSQL |
| Background jobs | Redis, BullMQ |
| Object storage | S3-compatible storage / MinIO |
| AI integration | OpenAI API with structured output |
| Security | JWT, bcrypt, Helmet, CORS, rate limiting |
React PWA
|
Express API
|-- PostgreSQL (users, graphs, reviews, jobs)
|-- Redis + BullMQ (background processing)
|-- MinIO / S3 (private uploaded materials)
`-- OpenAI API (analysis and vocabulary generation)
More details are available in ARCHITECTURE.md.
- Node.js 20 or newer
- Docker Desktop with Docker Compose
- An OpenAI API key for AI features
docker compose up -dThis starts PostgreSQL on port 5433, Redis on 6379, and MinIO on 9000/9001.
cd backend
cp .env.example .env
npm install
npm run db:migrate
npm run devBefore starting, replace JWT_SECRET with a random value of at least 32 characters and add your own OPENAI_API_KEY. Never commit the .env file.
Start the worker in a second terminal:
cd backend
npm run workercd frontend
npm install
npm run devOpen http://localhost:5173.
If DATABASE_URL is not set, the backend uses a local JSON store. This mode is intended only for a simple single-user demonstration and does not require PostgreSQL, Redis, MinIO, or authentication.
6AA6
npm run dev # development server
npm start # production-style server
npm run worker # background AI worker
npm run db:migrate # apply database migrations
npm run db:seed # import starter vocabulary for one user
npm run db:backup # create a PostgreSQL backupnpm run dev
npm run build
npm run previewPOST /api/auth/registerPOST /api/auth/loginGET /api/auth/meGET /api/v2/websGET /api/v2/webs/:idGET /api/v2/nodes/:id/neighborsPOST /api/v2/nodes/:id/expandGET /api/v2/reviews/duePOST /api/v2/nodes/:id/reviewsPOST /api/v2/materials/textPOST /api/v2/materials/imageGET /api/v2/jobs/:id
- Secrets are read from environment variables and excluded from Git.
- Passwords are hashed with bcrypt.
- Protected routes derive the user ID from a verified JWT.
- Uploaded files are private and size/type restricted.
- Authentication, API, and AI endpoints are rate-limited.
- Production CORS requires an explicit
FRONTEND_ORIGIN.
The core application and production architecture are implemented. The next planned improvements are automated tests, continuous integration, deployment, and a public demo.
This project is currently provided as a portfolio and demonstration project. Add a license before allowing reuse by third parties.