{"id":50403143,"url":"https://github.com/niklas-schmidt-dev/shipable-template-dashboard-node-workos-postgres","last_synced_at":"2026-05-31T00:04:41.997Z","repository":{"id":361492791,"uuid":"1254509515","full_name":"niklas-schmidt-dev/shipable-template-dashboard-node-workos-postgres","owner":"niklas-schmidt-dev","description":"A full-stack dashboard with React, a Node API, WorkOS AuthKit routes, and a Postgres reporting schema.","archived":false,"fork":false,"pushed_at":"2026-05-30T21:22:04.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T23:13:54.107Z","etag":null,"topics":["business","dashboard-node-workos-postgres","shipable","shipable-template"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"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/niklas-schmidt-dev.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-05-30T16:52:16.000Z","updated_at":"2026-05-30T21:22:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/niklas-schmidt-dev/shipable-template-dashboard-node-workos-postgres","commit_stats":null,"previous_names":["niklas-schmidt-dev/shipable-template-dashboard-node-workos-postgres"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/niklas-schmidt-dev/shipable-template-dashboard-node-workos-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-node-workos-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-node-workos-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-node-workos-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-node-workos-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niklas-schmidt-dev","download_url":"https://codeload.github.com/niklas-schmidt-dev/shipable-template-dashboard-node-workos-postgres/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-node-workos-postgres/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33714036,"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-05-30T02:00:06.278Z","response_time":92,"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":["business","dashboard-node-workos-postgres","shipable","shipable-template"],"created_at":"2026-05-31T00:04:38.267Z","updated_at":"2026-05-31T00:04:41.993Z","avatar_url":"https://github.com/niklas-schmidt-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node + WorkOS + Postgres Dashboard\n\nThis generated app uses React/Vite/Tailwind for the frontend, an Express-backed Node API in `api/`, WorkOS AuthKit login routes, sealed session cookies, and Postgres migrations in `db/migrations`.\n\n## Local Development\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nRun the frontend:\n\n```bash\nnpm run dev\n```\n\nRun the API in another terminal:\n\n```bash\nDATABASE_URL=postgres://user:password@localhost:5432/app \\\nWORKOS_API_KEY=sk_test_... \\\nWORKOS_CLIENT_ID=client_... \\\nWORKOS_REDIRECT_URI=http://localhost:8787/callback \\\nWORKOS_COOKIE_PASSWORD=replace-with-at-least-32-characters \\\nnpm run dev:api\n```\n\nThe dashboard still renders preview data when `DATABASE_URL` or WorkOS values are missing, so the template is inspectable before credentials are configured. For a real AuthKit flow, add `http://localhost:8787/callback` as a WorkOS redirect URI and `http://localhost:5173` as the app origin.\n\nApply the Postgres migrations:\n\n```bash\nfor migration in db/migrations/*.sql; do psql \"$DATABASE_URL\" -f \"$migration\"; done\n```\n\nRun the API with the service start command:\n\n```bash\nnpm run start\n```\n\n`npm run start` runs `npm run build:api` first and then starts the compiled server with Node from `.shipable/service/api/server.js`.\n\nSecurity defaults:\n\n- AuthKit callbacks verify OAuth state before sealing a session cookie.\n- `WORKOS_COOKIE_PASSWORD` must be 32+ random characters.\n- `/api/dashboard` requires an authenticated WorkOS session once WorkOS is configured.\n- Sign-out uses `POST /logout`; API responses use no-store cache headers and generic error bodies.\n\nValidate the full project:\n\n```bash\nnpm run typecheck\nnpm run check:api\nnpm run build:api\nnpm run build\n```\n\nThe service runtime listens on `PORT` when provided and defaults to `8787`. Health, session, and dashboard endpoints are `/api/health`, `/api/session`, and `/api/dashboard`; AuthKit routes are `/login`, `/callback`, and `/logout`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklas-schmidt-dev%2Fshipable-template-dashboard-node-workos-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklas-schmidt-dev%2Fshipable-template-dashboard-node-workos-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklas-schmidt-dev%2Fshipable-template-dashboard-node-workos-postgres/lists"}