{"id":22571173,"url":"https://github.com/danielfgray/node-pg-template","last_synced_at":"2025-08-15T20:37:05.980Z","repository":{"id":148820757,"uuid":"528213274","full_name":"DanielFGray/node-pg-template","owner":"DanielFGray","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-05T19:07:46.000Z","size":379,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-24T00:38:21.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielFGray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-08-24T00:51:24.000Z","updated_at":"2025-01-14T00:23:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e473e06-4c7d-4e9b-85ae-c4d02118ec19","html_url":"https://github.com/DanielFGray/node-pg-template","commit_stats":null,"previous_names":["danielfgray/react-pg-template","danielfgray/node-pg-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielFGray%2Fnode-pg-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielFGray%2Fnode-pg-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielFGray%2Fnode-pg-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielFGray%2Fnode-pg-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielFGray","download_url":"https://codeload.github.com/DanielFGray/node-pg-template/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248124848,"owners_count":21051757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-08T01:15:47.157Z","updated_at":"2025-04-09T22:41:34.826Z","avatar_url":"https://github.com/DanielFGray.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-pg-template\n\nusing typescript and postgres for everything\n\n## Features\n\n- username/password login\n- oauth login with github\n- account verification via email\n- reset password via email\n- settings page to manage\n  * user profile\n  * changing password\n  * add/delete email\n  * switching primary email\n  * delete account\n\n* authorization constraints are enforced by Postgres RLS\n* session data is stored in Postgres\n* [Graphile Worker](https://worker.graphile.org) is used as a job queue, jobs are stored in Postgres\n* database migrations are written in SQL, managed by [Graphile Migrate](https://github.com/graphile/migrate)\n* [Kysely](https://kysely.dev) is used to generates types from Postgres\n\n## Getting started\n\n```sh\nnpm run dev\n```\n\nThe `predev` script starts Postgres with Docker, checks to see if it can connect, or runs the `init` script, which will generate a `.env` file, start the Postgres cluster using docker-compose, run migrations, and generate TypeScript definitions, before finally the `dev` command to start the backend and Vite dev server. The `init` process is skipped if the `predev` script successfully connects to the db.\n\n## Requirements\n\nThe `init` scripts assume you have `docker` and `docker-compose` installed\n\n## Roadmap\n\n- [x] testing\n- [ ] real-time notifications using `NOTIFY`/`LISTEN`\n- [ ] typed rpc\n- [ ] observability\n- [ ] server-side rendering?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielfgray%2Fnode-pg-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielfgray%2Fnode-pg-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielfgray%2Fnode-pg-template/lists"}