skriver p[ engelska pga av tangentbordet. quick wip of a administration website to monitor attendance and whereabouts about the people attending.
Find a file
2025-10-25 15:07:36 +02:00
api adding sse for the landing page to update turnament stats for everyone 2025-10-16 13:09:02 +02:00
node_modules/dotenv csv-parser implementerat 2025-09-26 22:05:45 +02:00
web removing tournaments from index that has already started 2025-10-25 15:07:36 +02:00
.env removing tournaments from index that has already started 2025-10-25 15:07:36 +02:00
bun.lock csv-parser implementerat 2025-09-26 22:05:45 +02:00
docker-compose.yml Add derived attributes 2025-09-20 17:03:21 +02:00
elever.csv csv-parser implementerat 2025-09-26 22:05:45 +02:00
package.json added channels for automatic updates on every device and some security settings for hosting 2025-09-20 17:15:41 +02:00
README.md quick ui cleanup removed admin buttons from the public front and changed readme and renamed the .env to avoid collisions on live server 2025-10-19 18:25:40 +02:00

VBytes Attendance

Requirements

  • Docker Engine (with Compose v2)

Setup

  1. Copy the provided .env file (already checked in). Adjust if needed:

    POSTGRES_PASSWORD=postgrespass123
    JWT_SECRET=supersecretjwtkey
    ADMIN_USERNAME=admin
    ADMIN_PASSWORD=AdminPass!234
    JWT_COOKIE_SECURE=false
    ENABLE_HTTPS_REDIRECT=false
    WEB_PORT=3000
    CSRF_ALLOWED_ORIGINS=http://192.168.68.61:3000
    
    • Change JWT_SECRET and ADMIN_PASSWORD before production use.
    • Keep JWT_COOKIE_SECURE=false and ENABLE_HTTPS_REDIRECT=false unless you run behind HTTPS.
    • Update CSRF_ALLOWED_ORIGINS local network ip/port you will use to host the application on.
  2. Start the stack:

    docker compose up -d --build
    
  3. Open the web app at http://<this-machine-ip>:3000 using the admin credentials (ADMIN_USERNAME, ADMIN_PASSWORD).

  4. Stop the stack:

    docker compose down
    

    To wipe Postgres data (e.g., after upgrading versions), also remove the volume:

    docker volume rm vbytes_postgres-data
    

Thats it—the Compose file starts Postgres, the Rust API, and the SvelteKit frontend using the values from .env.