Ein Full-Stack MVP zum Erstellen von Notizen und einer visuellen Neuro Map. Jede Topic wird als "Neuroparticle" dargestellt; die Größe wächst mit der Aktivität deiner Notizen.
neuro-notes/
apps/
api/ # Express + TypeScript + Prisma
web/ # React + Vite + React Query
infra/
docker-compose.yml # PostgreSQL
packages/
shared/ # Platzhalter für geteilten Code
.env # globale ENV (DB, PORT)
package.json # Workspaces (API & Web)
-
Datenbank starten
docker compose -f infra/docker-compose.yml up -d
-
API starten
cd apps/api npm install npx prisma migrate dev --name init npm run dev -
Frontend starten
cd apps/web npm install npm run dev
- API: http://localhost:4000
- Frontend (Vite): Port 5173 (Standard)
- Notizen mit
topicName, optionaltitle, Pflichtfeldcontent - Automatisches Topic-Upsert für den Demo-User
demo@local.dev - Zod-Validierung im API
- Prisma ORM mit PostgreSQL (Docker)
- Endpunkte:
/health,/topics,/notes(POST + optional GET),/map - Neuro Map Nodes:
score = notesCount + floor(wordsSum/50),radius = clamp(12,60,12+score*2)
GET /health->{ ok: true }POST /notesmit Topic + Content erzeugt Note und TopicGET /mapliefert Nodes pro Topic mit Score & Radius