Skip to content

ninto1/minAZ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

minAZ — minimale Arbeitszeit Aufzeichnung

Kleines, lokales Time-Tracking‑Projekt mit Express + statischem Frontend.

Kurz:

Schnellstart

  1. Abhängigkeiten installieren:
    npm install
  2. Starten:
    node index.js
  3. Öffnen: http://localhost:3000

Wichtige Dateien & Funktionen

API (Kurzüberblick, implementiert in index.js)

  • GET /api/projects — Liste der Projekte
  • POST /api/projects — Projekt anlegen (Body: { name })
  • GET /api/entries — alle Einträge + aktuelles active
  • POST /api/start — Start einer Session (Body: { projectId })
  • POST /api/stop — Stoppt aktuelle Session, legt Eintrag an
  • GET /api/summary — Zusammenfassung (totalSeconds, perProject)
  • GET /api/data — Rohdaten (debug)

Beispiel cURL (Neues Projekt):

curl -X POST -H "Content-Type: application/json" \
  -d '{"name":"Mein Projekt"}' http://localhost:3000/api/projects

Datenformat

  • Persistiert in data.json. Schema: { projects: [...], entries: [...], active: null|{projectId,start} }.

Hinweis Dieses Projekt ist 100% KI generiert

About

Minimale Zeitaufzeichnung

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published