{"id":18850839,"url":"https://github.com/luqmanoop/node-postgres-api","last_synced_at":"2026-04-12T18:41:32.802Z","repository":{"id":97223089,"uuid":"149982668","full_name":"luqmanoop/node-postgres-api","owner":"luqmanoop","description":"A simple blog API built with Node.js + Express + PostgreSQL","archived":false,"fork":false,"pushed_at":"2018-09-27T21:06:23.000Z","size":120,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-02-14T22:07:32.237Z","etag":null,"topics":["es6","express","nodejs","postgres","postgresql","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luqmanoop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-09-23T12:33:24.000Z","updated_at":"2024-08-05T21:28:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec430771-53dc-4342-9309-0d2cce413072","html_url":"https://github.com/luqmanoop/node-postgres-api","commit_stats":null,"previous_names":["luqmanoop/node-postgres-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luqmanoop%2Fnode-postgres-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luqmanoop%2Fnode-postgres-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luqmanoop%2Fnode-postgres-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luqmanoop%2Fnode-postgres-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luqmanoop","download_url":"https://codeload.github.com/luqmanoop/node-postgres-api/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239786713,"owners_count":19696888,"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":["es6","express","nodejs","postgres","postgresql","rest-api"],"created_at":"2024-11-08T03:31:55.614Z","updated_at":"2026-02-03T12:30:16.751Z","avatar_url":"https://github.com/luqmanoop.png","language":"JavaScript","readme":"# Introduction\n\nA simple blog API built using NodeJS + Express + Postgres.\n\n## Installation\n\n```bash\n$ git clone git@github.com:codeshifu/node-postgres-api.git\n\n$ cd node-postgres-api\n\n$ npm install\n```\n\n### Rename _.env.sample_ to .env and set database connection\n\n```\nDB_URL=postgres://user:password@host:port/database\n```\n\n## Run\n\n```bash\n$ npm run dev\n```\n\nVisit http://localhost:8000/api/v1\n\n### Available endpoints\n\n`/api/v1/authors`\n\n| method | route              | description          |\n| ------ | ------------------ | -------------------- |\n| GET    | /authors           | Get authors          |\n| POST   | /authors           | Create author        |\n| GET    | /authors/:id       | Get author by ID     |\n| GET    | /authors/:id/posts | Get posts by author  |\n| PUT    | /authors/:id       | Update author        |\n| DELETE | /authors/:id       | Delete/remove author |\n\n`/api/v1/posts`\n\n| method | route      | description          |\n| ------ | ---------- | -------------------- |\n| GET    | /posts     | Get posts            |\n| POST   | /posts     | Create post          |\n| GET    | /posts/:id | Get posts by ID      |\n| PUT    | /posts/:id | Update author        |\n| DELETE | /posts/:id | Delete/remove author |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluqmanoop%2Fnode-postgres-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluqmanoop%2Fnode-postgres-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluqmanoop%2Fnode-postgres-api/lists"}