{"id":50956811,"url":"https://github.com/horooka/dockhost-rubik-site","last_synced_at":"2026-06-18T08:30:29.883Z","repository":{"id":362759395,"uuid":"1260579072","full_name":"horooka/dockhost-rubik-site","owner":"horooka","description":"Web app about Rubik's cube solving capable for dockhost hosting","archived":false,"fork":false,"pushed_at":"2026-06-05T19:01:33.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-05T20:17:10.213Z","etag":null,"topics":["cloud","docker","javascript","rubiks-cube","rust","web"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/horooka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-05T16:37:20.000Z","updated_at":"2026-06-05T19:04:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/horooka/dockhost-rubik-site","commit_stats":null,"previous_names":["horooka/dockhost-rubik-site"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/horooka/dockhost-rubik-site","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horooka%2Fdockhost-rubik-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horooka%2Fdockhost-rubik-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horooka%2Fdockhost-rubik-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horooka%2Fdockhost-rubik-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/horooka","download_url":"https://codeload.github.com/horooka/dockhost-rubik-site/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horooka%2Fdockhost-rubik-site/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34483273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"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":["cloud","docker","javascript","rubiks-cube","rust","web"],"created_at":"2026-06-18T08:30:29.085Z","updated_at":"2026-06-18T08:30:29.876Z","avatar_url":"https://github.com/horooka.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Web app for dockhost hosting — competitive Rubik's cube solving.\n\n# Features\n\n- JWT in cookies authentication middleware\n- bcrypt password hashing\n- 3D Rubik's cube (Three.js) with animated face turns\n- Keyboard shortcuts for basic moves and algorithm macros\n- YAML-defined scrambles and macro algorithms\n- Server-side solved-state validation (54 facelets)\n\n# Env vars\n\n- JWT_SECRET — 32-character base64 key for HS256 JWT symmetric signing\n- POSTGRES_DB — postgres database name\n- POSTGRES_HOST — name of postgres container in the same Dockhost project\n\n```\n+====rubik-app====+  +====postgres=====+\n|POSTGRES_USER    |\u003c-|POSTGRES_USER    |\n|POSTGRES_PASSWORD|\u003c-|POSTGRES_PASSWORD|\n|POSTGRES_DB      |\u003c-|POSTGRES_DB      |\n|POSTGRES_HOST    |  +=================+\n|JWT_SECRET       |\n+=================+\n```\n\n# Setup\n\n## Postgres app setup\n\n1. Enter `psql -U $POSTGRES_USER -d $POSTGRES_DB` in postgres terminal\n2. Create the users table:\n```sql\nCREATE TABLE users(\n    id SERIAL PRIMARY KEY,\n    username VARCHAR(15),\n    password VARCHAR(60),\n    solved INT DEFAULT 0,\n    easy INT DEFAULT 0,\n    medium INT DEFAULT 0,\n    hard INT DEFAULT 0\n);\n```\n\n## App setup\n\n1. Set deploy from git repo with build context **`rubik-app/`** and Dockerfile path **`rubik-app/Dockerfile`**\n2. Specify app container env vars (`JWT_SECRET`, `POSTGRES_HOST`, `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_DB`) and port **8000**\n\n## Domain setup\n\n1. Create a domain object on external or dynamic dockhost-provided domain\n2. Create route from domain to app container on it's port\n\n# Rubik's cube\n\n`rubik-app/rubik.yaml` has two sections:\n\n- **macros** — algorithm shortcuts bound to number keys `1`–`6`\n- **scrambles** — WCA-style notation strings with difficulty (`easy`, `medium`, `hard`)\n\n## Controls (on /rubik)\n\n| Input | Action |\n|-------|--------|\n| `R` `L` `U` `D` `F` `B` | clockwise face turn |\n| Shift + face key | counter-clockwise (prime) |\n| Ctrl + face key | half turn (180°) |\n| `1`–`6` | run algorithm macro |\n| drag canvas | orbit camera |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorooka%2Fdockhost-rubik-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhorooka%2Fdockhost-rubik-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorooka%2Fdockhost-rubik-site/lists"}