{"id":15304916,"url":"https://github.com/nicnocquee/create-postgresql","last_synced_at":"2026-04-09T02:31:40.457Z","repository":{"id":253017172,"uuid":"842206207","full_name":"nicnocquee/create-postgresql","owner":"nicnocquee","description":"Quickly create a PostgreSQL database in a single command","archived":false,"fork":false,"pushed_at":"2024-08-16T17:59:52.000Z","size":82,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T04:33:52.878Z","etag":null,"topics":["cli","database","docker","nodejs","postgresql"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/create-postgresql","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/nicnocquee.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":"2024-08-13T22:23:15.000Z","updated_at":"2024-09-11T07:07:46.000Z","dependencies_parsed_at":"2024-08-14T08:45:57.776Z","dependency_job_id":null,"html_url":"https://github.com/nicnocquee/create-postgresql","commit_stats":null,"previous_names":["nicnocquee/create-postgres","nicnocquee/create-postgresql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nicnocquee/create-postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fcreate-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fcreate-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fcreate-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fcreate-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicnocquee","download_url":"https://codeload.github.com/nicnocquee/create-postgresql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fcreate-postgresql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31582609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","database","docker","nodejs","postgresql"],"created_at":"2024-10-01T07:58:29.088Z","updated_at":"2026-04-09T02:31:40.438Z","avatar_url":"https://github.com/nicnocquee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-postgresql server\n\nThis repo contains the server part of [create-postgresql CLI](https://www.npmjs.com/package/create-postgresql). By default, the published version of the CLI uses the deployed version of this service. You can self host the backend services in this repo and use it with the CLI.\n\n## System Overview\n\nThe system consists of several components:\n\n- PostgreSQL database.\n- PGBouncer connection pooler.\n- Backend server (Node.js/Express).\n- Frontend verification page: a single HTML page that uses Google reCAPTCHA to verify the user's identity.\n- Cron job for database cleanup.\n- [create-postgresql CLI to quickly generate a temporary database](https://www.npmjs.com/package/create-postgresql)\n- TimescaleDB database to track number of created databases over time.\n\n## Prerequisites\n\n- Docker and Docker Compose\n- Node.js and npm (for CLI tool development)\n- Google reCAPTCHA account (for frontend verification)\n\n## Development Setup\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/nicnocquee/create-postgresql.git\n   cd create-postgresql\n   ```\n\n2. Copy `env.example` to `.env` and add your own values.\n\n3. Build and start the containers:\n\n   ```\n   cp docker-compose.override.yml.example docker-compose.override.yml\n   docker-compose up --build\n   ```\n\n4. The services will be available at:\n\n   - Frontend: http://localhost\n   - Backend API: http://localhost:3000\n\n5. For CLI tool development:\n   ```\n   cd cli\n   npm install\n   npm link\n   cd ..\n   npm run cli # run the CLI tool against the local server\n   ```\n\n## Security Measures\n\n- Each database is associated with a unique PostgreSQL user.\n- Users can only access their own database.\n- Public access to databases is revoked.\n- Databases and their associated users are completely removed during the cleanup process.\n- Each database user is assigned a strong, randomly generated password.\n\n## Contributing\n\n1. Fork the repository\n2. Create a new branch: `git checkout -b feature-branch-name`\n3. Make changes and commit: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin feature-branch-name`\n5. Submit a pull request\n\n## Database Limitations\n\n- Each database is limited to 10MB of storage.\n- Attempts to exceed this limit will result in an error.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicnocquee%2Fcreate-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicnocquee%2Fcreate-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicnocquee%2Fcreate-postgresql/lists"}