{"id":41005770,"url":"https://github.com/plushugh/scoring","last_synced_at":"2026-01-22T08:39:28.231Z","repository":{"id":171797915,"uuid":"604118348","full_name":"plushugh/scoring","owner":"plushugh","description":"Scoring, an application to track student minigame scores during the BRS Hogwarts Festival","archived":false,"fork":false,"pushed_at":"2024-01-20T06:44:41.000Z","size":242,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-01-20T08:40:50.532Z","etag":null,"topics":["caddy","docker","docker-compose","pocketbase","realtime","svelte","sveltekit","typescript"],"latest_commit_sha":null,"homepage":"https://scoring.plushugh.com","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plushugh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-02-20T11:24:28.000Z","updated_at":"2024-01-06T09:28:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3cad8b5-2702-4027-be73-2b3abe67cf3a","html_url":"https://github.com/plushugh/scoring","commit_stats":null,"previous_names":["treee-studio/scoring","radioclub/scoring","micro-henry/scoring","plushugh/scoring"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/plushugh/scoring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plushugh%2Fscoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plushugh%2Fscoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plushugh%2Fscoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plushugh%2Fscoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plushugh","download_url":"https://codeload.github.com/plushugh/scoring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plushugh%2Fscoring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28659518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["caddy","docker","docker-compose","pocketbase","realtime","svelte","sveltekit","typescript"],"created_at":"2026-01-22T08:39:28.131Z","updated_at":"2026-01-22T08:39:28.225Z","avatar_url":"https://github.com/plushugh.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Deployment\n\n### 0. Prerequisites\n#### Requirements\n- Docker\n- Docker compose\n\n### 1. Authenticate docker with your github tokens for permission to pull from `ghcr.io/plushugh/*`\n```bash\ndocker login ghcr.io -u \u003cusername\u003e\n# enter your personal access token as password in the prompts\n```\n\n### 2. Edit `.env` for your use case\n\n```bash\ncp .env.example .env\n```\n\n```env\nPUBLIC_POCKETBASE_URL=\"https://domain.tld/pb\"\nPUBLIC_BASE_URL=\"https://domain.tld\"\nPUBLIC_SENTRY_DSN=\"sentry_dsn_here\"\n\nCADDY_DNS_APIKEY=\"api_key_here\"\n```\n\n### 3. Manually create Caddy data dir for persistent storage and networks\n\n```bash\ndocker volume create caddy_data\n\ndocker network create web\ndocker network create caddy-net --internal\n```\n\n### 4. Build and start stack\n\n```bash\ndocker compose up -d\n```\n\n### 5. Create Pocketbase admin account\n\n### 6. Import collections\ngo to pocketbase instance settings \u003e import collections and import this json\n```json\n[\n    {\n        \"id\": \"_pb_users_auth_\",\n        \"name\": \"recorders\",\n        \"type\": \"auth\",\n        \"system\": false,\n        \"schema\": [\n            {\n                \"id\": \"users_name\",\n                \"name\": \"name\",\n                \"type\": \"text\",\n                \"system\": false,\n                \"required\": false,\n                \"unique\": false,\n                \"options\": {\n                    \"min\": null,\n                    \"max\": null,\n                    \"pattern\": \"\"\n                }\n            }\n        ],\n        \"listRule\": \"id = @request.auth.id\",\n        \"viewRule\": \"id = @request.auth.id\",\n        \"createRule\": null,\n        \"updateRule\": null,\n        \"deleteRule\": null,\n        \"options\": {\n            \"allowEmailAuth\": true,\n            \"allowOAuth2Auth\": true,\n            \"allowUsernameAuth\": true,\n            \"exceptEmailDomains\": null,\n            \"manageRule\": null,\n            \"minPasswordLength\": 8,\n            \"onlyEmailDomains\": null,\n            \"requireEmail\": false\n        }\n    },\n    {\n        \"id\": \"n4ppq4i2wrlcl2x\",\n        \"name\": \"houses\",\n        \"type\": \"base\",\n        \"system\": false,\n        \"schema\": [\n            {\n                \"id\": \"rwp3icda\",\n                \"name\": \"name\",\n                \"type\": \"text\",\n                \"system\": false,\n                \"required\": true,\n                \"unique\": false,\n                \"options\": {\n                    \"min\": null,\n                    \"max\": null,\n                    \"pattern\": \"\"\n                }\n            },\n            {\n                \"id\": \"cnuo8lu7\",\n                \"name\": \"score\",\n                \"type\": \"number\",\n                \"system\": false,\n                \"required\": false,\n                \"unique\": false,\n                \"options\": {\n                    \"min\": null,\n                    \"max\": null\n                }\n            },\n            {\n                \"id\": \"r703c6si\",\n                \"name\": \"color\",\n                \"type\": \"text\",\n                \"system\": false,\n                \"required\": true,\n                \"unique\": false,\n                \"options\": {\n                    \"min\": null,\n                    \"max\": null,\n                    \"pattern\": \"\"\n                }\n            }\n        ],\n        \"listRule\": \"\",\n        \"viewRule\": \"\",\n        \"createRule\": null,\n        \"updateRule\": \"\",\n        \"deleteRule\": null,\n        \"options\": {}\n    },\n    {\n        \"id\": \"wvrk4tlcmnozz7n\",\n        \"name\": \"students\",\n        \"type\": \"base\",\n        \"system\": false,\n        \"schema\": [\n            {\n                \"id\": \"wnb9q3np\",\n                \"name\": \"name\",\n                \"type\": \"text\",\n                \"system\": false,\n                \"required\": true,\n                \"unique\": false,\n                \"options\": {\n                    \"min\": null,\n                    \"max\": null,\n                    \"pattern\": \"\"\n                }\n            },\n            {\n                \"id\": \"injyhvc1\",\n                \"name\": \"cardNumber\",\n                \"type\": \"text\",\n                \"system\": false,\n                \"required\": true,\n                \"unique\": false,\n                \"options\": {\n                    \"min\": null,\n                    \"max\": null,\n                    \"pattern\": \"\"\n                }\n            },\n            {\n                \"id\": \"9zghfn8g\",\n                \"name\": \"house\",\n                \"type\": \"select\",\n                \"system\": false,\n                \"required\": true,\n                \"unique\": false,\n                \"options\": {\n                    \"maxSelect\": 1,\n                    \"values\": [\n                        \"gryffindor\",\n                        \"slytherin\",\n                        \"hufflepuff\",\n                        \"ravenclaw\"\n                    ]\n                }\n            },\n            {\n                \"id\": \"1mkfk6jd\",\n                \"name\": \"score\",\n                \"type\": \"number\",\n                \"system\": false,\n                \"required\": false,\n                \"unique\": false,\n                \"options\": {\n                    \"min\": null,\n                    \"max\": null\n                }\n            }\n        ],\n        \"listRule\": \"\",\n        \"viewRule\": \"\",\n        \"createRule\": null,\n        \"updateRule\": \"\",\n        \"deleteRule\": null,\n        \"options\": {}\n    },\n    {\n        \"id\": \"g8b6ilyocmrxcdz\",\n        \"name\": \"records\",\n        \"type\": \"base\",\n        \"system\": false,\n        \"schema\": [\n            {\n                \"id\": \"c2hiuqu4\",\n                \"name\": \"action\",\n                \"type\": \"select\",\n                \"system\": false,\n                \"required\": true,\n                \"unique\": false,\n                \"options\": {\n                    \"maxSelect\": 1,\n                    \"values\": [\n                        \"increase\",\n                        \"decrease\"\n                    ]\n                }\n            },\n            {\n                \"id\": \"ntcwfdq0\",\n                \"name\": \"change\",\n                \"type\": \"number\",\n                \"system\": false,\n                \"required\": true,\n                \"unique\": false,\n                \"options\": {\n                    \"min\": null,\n                    \"max\": null\n                }\n            },\n            {\n                \"id\": \"qh3it8nq\",\n                \"name\": \"recorder\",\n                \"type\": \"relation\",\n                \"system\": false,\n                \"required\": true,\n                \"unique\": false,\n                \"options\": {\n                    \"collectionId\": \"_pb_users_auth_\",\n                    \"cascadeDelete\": false,\n                    \"maxSelect\": 1,\n                    \"displayFields\": []\n                }\n            },\n            {\n                \"id\": \"e7dy1ajf\",\n                \"name\": \"student\",\n                \"type\": \"relation\",\n                \"system\": false,\n                \"required\": true,\n                \"unique\": false,\n                \"options\": {\n                    \"collectionId\": \"wvrk4tlcmnozz7n\",\n                    \"cascadeDelete\": false,\n                    \"maxSelect\": 1,\n                    \"displayFields\": []\n                }\n            }\n        ],\n        \"listRule\": \"recorder.id = @request.auth.id\",\n        \"viewRule\": \"recorder.id = @request.auth.id\",\n        \"createRule\": \"recorder.id = @request.auth.id\",\n        \"updateRule\": null,\n        \"deleteRule\": null,\n        \"options\": {}\n    }\n]\n```\n\n### 7. Create houses and students\nYou can use the convience script `./tools/scripts/seed.ts` to seed houses and students (Bun required)\nAnd the convience script `./tools/scripts/generateSample.ts` to generate students (Bun required)\n\n### 9. Create recorder accounts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplushugh%2Fscoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplushugh%2Fscoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplushugh%2Fscoring/lists"}