{"id":21471345,"url":"https://github.com/waichungwong/jw-postgres-admin","last_synced_at":"2025-03-17T06:47:03.264Z","repository":{"id":57287638,"uuid":"170484134","full_name":"WaiChungWong/jw-postgres-admin","owner":"WaiChungWong","description":"A basic PostgreSQL client middleware for node with express.","archived":false,"fork":false,"pushed_at":"2019-02-13T10:09:50.000Z","size":569,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T17:03:57.258Z","etag":null,"topics":["admin","express","postgresql"],"latest_commit_sha":null,"homepage":null,"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/WaiChungWong.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}},"created_at":"2019-02-13T09:59:10.000Z","updated_at":"2019-02-13T10:14:10.000Z","dependencies_parsed_at":"2022-08-26T01:01:17.344Z","dependency_job_id":null,"html_url":"https://github.com/WaiChungWong/jw-postgres-admin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaiChungWong%2Fjw-postgres-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaiChungWong%2Fjw-postgres-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaiChungWong%2Fjw-postgres-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaiChungWong%2Fjw-postgres-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WaiChungWong","download_url":"https://codeload.github.com/WaiChungWong/jw-postgres-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243988961,"owners_count":20379649,"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":["admin","express","postgresql"],"created_at":"2024-11-23T09:33:53.437Z","updated_at":"2025-03-17T06:47:03.231Z","avatar_url":"https://github.com/WaiChungWong.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jw-postgres-admin\n\nA basic PostgreSQL client middleware for node with express.\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/jw-postgres-admin.svg\n[npm-url]: http://npmjs.org/package/jw-postgres-admin\n[travis-image]: https://img.shields.io/travis/WaiChungWong/jw-postgres-admin.svg\n[travis-url]: https://travis-ci.org/WaiChungWong/jw-postgres-admin\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/jw-postgres-admin.svg\n[download-url]: https://npmjs.org/package/jw-postgres-admin\n\n## Install\n\n[![NPM](https://nodei.co/npm/jw-postgres-admin.png)](https://nodei.co/npm/jw-postgres-admin)\n\n## Methods\n\n| Method   | Parameters                                                                                                             | Description                                                                                                                                                                                                                          |\n| -------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `\u003cmain\u003e` | `presetCredentials` (optional) : {\u003cp\u003e `host`:string \u003cbr\u003e `port`:string \u003cbr\u003e `user`:string \u003cbr\u003e `password`:string \u003cbr\u003e} | the preset connection information which will be passed into `client` as configuration programmatically when connecting to a PostgreSQL database. See [connecting with node-postgres](https://node-postgres.com/features/connecting). |\n\n## Usage\n\n```javascript\nimport express from \"express\";\nimport postgresAdmin from \"jw-postgres-admin\";\n\nconst app = express();\nconst port = process.env.PORT || 3000;\n\napp.use(\"/postgres-admin\", postgresAdmin());\n\napp.listen(port);\n```\n\n## Using postgres admin client\n\nThe react client is located on whatever path the middleware is set.\nFor example from above - it is located at `http://localhost:3000/postgres-admin`.\nIt uses the database connection information as an authentication, and will prompt for any required information which is not provided in the preset credentials until a successful connection is made.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaichungwong%2Fjw-postgres-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaichungwong%2Fjw-postgres-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaichungwong%2Fjw-postgres-admin/lists"}