No description
Find a file
Michael Trip ae0556468f
All checks were successful
Build and Push Image / build-and-push (push) Successful in 15s
implement lazy database initialization and ensure database setup in routes
2026-01-09 22:29:28 +01:00
.github/workflows initial commit 2026-01-09 21:58:53 +01:00
app implement lazy database initialization and ensure database setup in routes 2026-01-09 22:29:28 +01:00
k8s add directory creation for SQLite database in create_app function; remove init container for SQLite 2026-01-09 22:20:52 +01:00
.dockerignore initial commit 2026-01-09 21:58:53 +01:00
.gitignore initial commit 2026-01-09 21:58:53 +01:00
config.py initial commit 2026-01-09 21:58:53 +01:00
deploy.sh initial commit 2026-01-09 21:58:53 +01:00
DEPLOYMENT.md initial commit 2026-01-09 21:58:53 +01:00
docker-compose.yml initial commit 2026-01-09 21:58:53 +01:00
Dockerfile initial commit 2026-01-09 21:58:53 +01:00
FEATURES.md initial commit 2026-01-09 21:58:53 +01:00
migrate_to_snauw_index.py initial commit 2026-01-09 21:58:53 +01:00
README.md first commit 2026-01-09 21:58:33 +01:00
requirements-prod.txt initial commit 2026-01-09 21:58:53 +01:00
requirements.txt initial commit 2026-01-09 21:58:53 +01:00
run.py initial commit 2026-01-09 21:58:53 +01:00

Snauw Counter

Een mobile-first webapplicatie om snauwgedrag bij te houden.

Features

  • Incident registratie met ernstscore (1-10)
  • Statistieken en trends
  • Ondersteuning voor anonieme en geregistreerde gebruikers
  • Mobile-first responsive design
  • GDPR/AVG compliant

Tech Stack

  • Backend: Flask (Python)
  • Database: SQLite/PostgreSQL
  • Frontend: HTML5, CSS3, JavaScript
  • Visualisaties: Chart.js

Installation

pip install -r requirements.txt
python run.py

Architectuur

Database Schema

  • Users (id, email, password_hash, created_at)
  • Incidents (id, user_id, timestamp, severity, notes, created_at)

API Endpoints

  • GET / - Homepage
  • POST /incident - Nieuwe incident registratie
  • GET /statistics - Statistieken pagina
  • POST /register - Gebruiker registratie
  • POST /login - Inloggen
  • POST /logout - Uitloggen
  • POST /migrate - Data migratie van anonymous naar registered

Frontend Components

  • Incident form (snelle invoer)
  • Statistics dashboard
  • User authentication
  • Anonymous user support met localStorage