Initial commit: EatMe attendance tracker

Google-SSO PWA for bistro employee clock-in/out, admin employee
management, and stats with CSV export. Express + SQLite backend,
React + Zustand frontend in the light-mono-tui design language.
Multi-stage Dockerfile, compose.yaml for image-based deploys, nginx
reverse-proxy template, and an OKF documentation bundle in docs/.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Michal Pemcak
2026-08-12 11:57:55 +02:00
commit fffcb73ea4
90 changed files with 3411 additions and 0 deletions

22
backend/.env.example Normal file
View File

@@ -0,0 +1,22 @@
# Port the API listens on
PORT=4000
# OAuth client ID from Google Cloud Console (Web application).
# Must match the client ID used by the frontend's Google Sign-In button.
GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
# Comma-separated list of email addresses that get admin access.
# Admins do not need a row in the employees table.
ADMIN_EMAILS=kamarad@example.com
# Secret used to sign session JWTs. Generate with: openssl rand -hex 32
JWT_SECRET=change-me-to-a-long-random-string
# Where the SQLite database file lives.
DB_PATH=./data/eatme.db
# Origin of the frontend app, for CORS + cookie settings.
CORS_ORIGIN=http://localhost:5173
# Set to "true" behind HTTPS in production so the session cookie gets Secure.
COOKIE_SECURE=false