{"id":20826735,"url":"https://github.com/cedrickchee/painless-pg-node","last_synced_at":"2025-06-25T03:04:47.456Z","repository":{"id":42913791,"uuid":"275574283","full_name":"cedrickchee/painless-pg-node","owner":"cedrickchee","description":"Painless PostgreSQL Node.js backend with Objection + Knex + Express","archived":false,"fork":false,"pushed_at":"2023-02-11T16:54:34.000Z","size":899,"stargazers_count":4,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T20:39:10.026Z","etag":null,"topics":["api-server","expressjs","expressjs-boilerplate","nodejs-backend","objectionjs","postgresql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/cedrickchee.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}},"created_at":"2020-06-28T11:52:04.000Z","updated_at":"2025-02-21T15:52:45.000Z","dependencies_parsed_at":"2025-05-07T20:39:10.933Z","dependency_job_id":"e6ef84b0-dd64-48c0-84ef-726b348cf691","html_url":"https://github.com/cedrickchee/painless-pg-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cedrickchee/painless-pg-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fpainless-pg-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fpainless-pg-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fpainless-pg-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fpainless-pg-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedrickchee","download_url":"https://codeload.github.com/cedrickchee/painless-pg-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fpainless-pg-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261795313,"owners_count":23210617,"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":["api-server","expressjs","expressjs-boilerplate","nodejs-backend","objectionjs","postgresql"],"created_at":"2024-11-17T23:09:53.590Z","updated_at":"2025-06-25T03:04:47.431Z","avatar_url":"https://github.com/cedrickchee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Painless Node.js API with SQL Database\n\nA minimal scaffold project that shows how to painlessly build a robust API with SQL database on Node.js.\n\n## What's included\n\n- [node-postgres](https://node-postgres.com/) - Node.js modules for interfacing with PostgreSQL database\n- [Knex.js](http://knexjs.org) - SQL query builder\n- [Objection.js](https://vincit.github.io/objection.js/) - An SQL-friendly ORM built on Knex for Node.js\n- [Express.js](https://expressjs.com/) - Web framework for Node.js. A myriad of HTTP utility methods for creating API easily.\n\n## What does it do\n\nIt provides a simple idea/comment database and shows how relation can be modelled with Objection `Model` class. It also shows how to use eager loading to get related queries.\n\n## Development\n\n- Clone this repo: `git clone https://github.com/cedrickchee/painless-pg-node.git`\n- `cd painless-pg-node`\n- `npm install` to install required project dependencies.\n- Modify database connection according to your machine in `knexfile.js`.\n- Run it:\n  - `npm start` to start the production server.\n  - `npm run dev` to start the development server.\n- Point your browser to `http://localhost:3000/ideas` to test if it's working.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickchee%2Fpainless-pg-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedrickchee%2Fpainless-pg-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickchee%2Fpainless-pg-node/lists"}