{"id":14973850,"url":"https://github.com/nrjdalal/pglaunch","last_synced_at":"2025-04-15T16:21:23.855Z","repository":{"id":204777294,"uuid":"712651547","full_name":"nrjdalal/pglaunch","owner":"nrjdalal","description":"Quickly launch a PostgreSQL database for testing or development purposes.","archived":false,"fork":false,"pushed_at":"2025-03-11T12:39:33.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T22:12:34.483Z","etag":null,"topics":["database","pg","pgcli","pglaunch","pgsql","postgres","postgresql","psql"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pglaunch","language":"Shell","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/nrjdalal.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":"2023-10-31T22:46:55.000Z","updated_at":"2025-03-11T12:39:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"256825d2-dc48-4820-8f03-7e2ff2c31895","html_url":"https://github.com/nrjdalal/pglaunch","commit_stats":{"total_commits":57,"total_committers":1,"mean_commits":57.0,"dds":0.0,"last_synced_commit":"0e825aaf60bcb50b61f51af2ea0c44e80745972d"},"previous_names":["nrjdalal/pglaunch"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrjdalal%2Fpglaunch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrjdalal%2Fpglaunch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrjdalal%2Fpglaunch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrjdalal%2Fpglaunch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nrjdalal","download_url":"https://codeload.github.com/nrjdalal/pglaunch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249105476,"owners_count":21213537,"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":["database","pg","pgcli","pglaunch","pgsql","postgres","postgresql","psql"],"created_at":"2024-09-24T13:49:34.379Z","updated_at":"2025-04-15T16:21:23.837Z","avatar_url":"https://github.com/nrjdalal.png","language":"Shell","readme":"# [pglaunch - PostgreSQL/Redis Database Launcher](https://www.npmjs.com/package/pglaunch)\n\npglaunch is a simple script to launch a PostgreSQL or Redis docker container. It can be used to quickly launch a database for testing or development purposes.\n\n\u003e Options are available to keep the container running after the script exits and to specify the name and port of the container.\n\n```\npglaunch [options]\n\nOptions:\n  -h, --help               show this help message\n  -v, --version            show version number\n  -k, --keep               keep container after restart or exit\n  -n, --name \u003cname\u003e        name for docker container\n                           (default: current directory name)\n  -p, --port \u003cport\u003e        port for service container\n                           (default: 5555 for postgres, 6379 for redis)\n  -s, --service \u003cservice\u003e  service to launch (default: postgres, options: postgres, redis)\n```\n\nStar this project on [GitHub](https://github.com/nrjdalal/pglaunch#readme) if you find it useful.\n\n## Installation\n\n```\nnpx pglaunch\n```\n\nOther package managers are also supported.\n\nCurrent implemented for bash/zsh shell.\n\n## Examples\n\n1. Launch a PostgreSQL container with the default name and port:\n\n```\npglaunch\n```\n\n\u003e POSTGRES_URL=\u003cspan style=\"color: cyan\"\u003epostgresql://postgres:895UhteoUadR@localhost:5555/postgres\u003c/span\u003e\n\n2. Launch a PostgreSQL container with a custom name and port:\n\n```\npglaunch -n awesome-project -p 5432 \u0026\u0026 docker ps --format \"table {{.Names}}\"\n```\n\n\u003e POSTGRES_URL=\u003cspan style=\"color: cyan\"\u003epostgresql://postgres:895UhteoUadR@localhost:\u003cspan style=\"color: orange\"\u003e5432\u003c/span\u003e/postgres\u003c/span\u003e\u003cbr/\u003e\u003cbr/\u003eNAMES\u003cbr/\u003e\u003cspan style=\"color: orange\"\u003eawesome-project-y6zT\u003c/span\u003e\n\n3. Launch a PostgreSQL container and keep it running after the script exits:\n\n```\npglaunch -k\n```\n\n\u003e POSTGRES_URL=\u003cspan style=\"color: cyan\"\u003epostgresql://postgres:895UhteoUadR@localhost:5555/postgres\u003c/span\u003e\n\n4. Launch a PostgreSQL container with a custom name and port and keep it running after the script exits:\n\n```\npglaunch -n awesome-project -p 5432 -k \u0026\u0026 docker ps --format \"table {{.Names}}\"\n```\n\n\u003e POSTGRES_URL=\u003cspan style=\"color: cyan\"\u003epostgresql://postgres:895UhteoUadR@localhost:\u003cspan style=\"color: orange\"\u003e5432\u003c/span\u003e/postgres\u003c/span\u003e\u003cbr/\u003e\u003cbr/\u003eNAMES\u003cbr/\u003e\u003cspan style=\"color: orange\"\u003eawesome-project-y6zT\u003c/span\u003e\n\n\u003e Similar examples can be used for Redis. Just add the `-s redis` option.\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnrjdalal%2Fpglaunch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnrjdalal%2Fpglaunch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnrjdalal%2Fpglaunch/lists"}