{"id":19658354,"url":"https://github.com/cdaringe/super-commerce","last_synced_at":"2026-04-17T05:02:11.672Z","repository":{"id":142017736,"uuid":"182455433","full_name":"cdaringe/super-commerce","owner":"cdaringe","description":"a demo set of postgres tables, row-level security migrations, and accompanying web app","archived":false,"fork":false,"pushed_at":"2023-12-15T17:58:04.000Z","size":70,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T10:44:03.053Z","etag":null,"topics":["koa","postgresql","row-level-security","typescript"],"latest_commit_sha":null,"homepage":"https://cdaringe.com/protect-bacon-with-rls","language":"TypeScript","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/cdaringe.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}},"created_at":"2019-04-20T21:20:31.000Z","updated_at":"2020-01-27T19:29:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c7c9ee3-8800-43dc-bd6a-42630d763dd7","html_url":"https://github.com/cdaringe/super-commerce","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cdaringe/super-commerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsuper-commerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsuper-commerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsuper-commerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsuper-commerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdaringe","download_url":"https://codeload.github.com/cdaringe/super-commerce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsuper-commerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["koa","postgresql","row-level-security","typescript"],"created_at":"2024-11-11T15:37:17.312Z","updated_at":"2026-04-17T05:02:11.654Z","avatar_url":"https://github.com/cdaringe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# super-commerce\n\na minimal viable demo of showing how to pragmatically:\n\n- apply row-level security policies via postgresql, and\n- integrate with rls protected resources in a web application\n\nsee [cdaringe.com/protect-bacon-with-rls](https://cdaringe.com/protect-bacon-with-rls)\nfor a guided tour.\n\n## usage\n\n### prereqs\n\n- install `docker` for running an ephemral postgres instance\n- install `nodejs` for running the application server\n- install `yarn` package manager to install dependencies\n- consider reviewing the`src/migration/###-\u003cname\u003e.sql` migration sql files\n    - it's worth seeing how rls is being implemented!\n\n### run\n\n- run `yarn` in the project root. this will:\n    - purge any existing `commerce` database\n    - fire up a new db\n    - migrate the db\n    - compile the typescript files\n    - run the server application, attached to the database\n- kill/purge the db - ``yarn db:container:kill`\n\nfollow the onscreen instructions for more.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fsuper-commerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdaringe%2Fsuper-commerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fsuper-commerce/lists"}