{"id":23028731,"url":"https://github.com/kobebigs/pgweb-on-ec2","last_synced_at":"2025-04-02T20:22:24.289Z","repository":{"id":141942577,"uuid":"499468969","full_name":"kobeBigs/pgweb-on-ec2","owner":"kobeBigs","description":"a simple service file to keep pgweb running on amazon ec2 instance","archived":false,"fork":false,"pushed_at":"2022-06-08T13:54:59.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T10:46:28.015Z","etag":null,"topics":["pgweb","postgres","postgresql"],"latest_commit_sha":null,"homepage":"","language":null,"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/kobeBigs.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}},"created_at":"2022-06-03T10:25:30.000Z","updated_at":"2022-06-06T06:19:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"394cd870-8edb-4ee1-84af-492fe0575eac","html_url":"https://github.com/kobeBigs/pgweb-on-ec2","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/kobeBigs%2Fpgweb-on-ec2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobeBigs%2Fpgweb-on-ec2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobeBigs%2Fpgweb-on-ec2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobeBigs%2Fpgweb-on-ec2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kobeBigs","download_url":"https://codeload.github.com/kobeBigs/pgweb-on-ec2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246885228,"owners_count":20849644,"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":["pgweb","postgres","postgresql"],"created_at":"2024-12-15T14:12:24.741Z","updated_at":"2025-04-02T20:22:24.271Z","avatar_url":"https://github.com/kobeBigs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgweb\n\n[pgweb](https://github.com/sosedoff/pgweb) is a web-based browser for postgresql.\n\nThis documentation covers installation and setting up on an amazon ec2 ubuntu 20.04.4 LTS machine.\n\n## Installation\nUpdate your system packages\n``` sudo apt update \u0026\u0026 sudo apt upgrade -y```\n\nDownload and install pgweb \n``` \ncurl -s https://api.github.com/repos/sosedoff/pgweb/releases/latest \\\n  | grep linux_amd64.zip \\\n  | grep download \\\n  | cut -d '\"' -f 4 \\\n  | wget -qi - \\\n  \u0026\u0026 unzip pgweb_linux_amd64.zip \\\n  \u0026\u0026 rm pgweb_linux_amd64.zip \\\n  \u0026\u0026 mv pgweb_linux_amd64 /usr/local/bin/pgweb \n```\n\n\nCheck installation by running \n```\npgweb -v\n   \n  Output\n  Pgweb v0.11.11 (git: db2a7a8aa5bc449e4efa78cada9c76c3fe33bc39) (go: go1.17.6) (build time: 2022-03-30T04:36:12Z)\n```\n\n## Usage\nStart server with `pgweb` \n\nBy default pgweb runs on 127.0.0.1, localhost on port 8081. For amazon ec2, bind 0.0.0.0 to be able to access pgweb via the instance's public IP/DNS. \n```\npgweb --bind 0.0.0.0\n```  \n\nAccess pgweb via *instance-public-ip:8081* in your browswer\n\nTo connect to a database at start of pgweb you can add the connection flags;\n```\npgweb --bind 0.0.0.0 --host db-host-endpoint --user dbuser --db dbname\n```\n\npgweb also supports url scheme connection;\n```\npgweb --bind 0.0.0.0 --url postgres://dbuser:password@host:port/database\n```\n\nSee more [CLI options/flags](https://github.com/sosedoff/pgweb/wiki/Usage#cli-options)\n\n## Extend into a service\nThis lets systemd manage pgweb and can be monitored via `systemctl`.\n\nCopy/move the file `pgweb.service` to `/etc/systemd/system` folder.\n``` \nsudo mv pgweb.service /etc/systemd/system\n```\n\nReload services to include the new service.\n```\nsudo systemctl daemon-reload\n```\n\nStart the service and check the status.\n```\nsudo systemctl start pgweb.service\nsudo systemctl status pgweb.service\n```\n\nIf all goes through, enable the service to start at boot\n```\nsudo systemctl enable pgweb.service\n```\n## FAQ \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobebigs%2Fpgweb-on-ec2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkobebigs%2Fpgweb-on-ec2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobebigs%2Fpgweb-on-ec2/lists"}