{"id":23404718,"url":"https://github.com/nithink-142/express-postgres-api","last_synced_at":"2026-04-10T01:04:01.197Z","repository":{"id":269158202,"uuid":"906585190","full_name":"nithinK-142/express-postgres-api","owner":"nithinK-142","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-25T09:53:43.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T22:47:33.610Z","etag":null,"topics":["docker","docker-compose","express","postgresql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nithinK-142.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":"2024-12-21T10:10:39.000Z","updated_at":"2024-12-25T09:53:47.000Z","dependencies_parsed_at":"2024-12-21T11:39:42.689Z","dependency_job_id":null,"html_url":"https://github.com/nithinK-142/express-postgres-api","commit_stats":null,"previous_names":["nithink-142/express-postgres-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nithinK-142%2Fexpress-postgres-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nithinK-142%2Fexpress-postgres-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nithinK-142%2Fexpress-postgres-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nithinK-142%2Fexpress-postgres-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nithinK-142","download_url":"https://codeload.github.com/nithinK-142/express-postgres-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941717,"owners_count":21022037,"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":["docker","docker-compose","express","postgresql"],"created_at":"2024-12-22T13:15:25.052Z","updated_at":"2025-12-30T23:05:37.957Z","avatar_url":"https://github.com/nithinK-142.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express PostgreSQL API\n\n## Setup PostgreSQL using Docker\n\n### Prerequisites\n\n- Download and install [Docker Desktop](https://www.docker.com/products/docker-desktop/).\n- Install the pgAdmin extension within Docker.\n\n### Steps\n\n#### Pull the PostgreSQL Image\n\n```bash\ndocker pull postgres\n```\n\n#### Run the PostgreSQL Container\n\n```bash\ndocker run --name postgres-db -e POSTGRES_PASSWORD=8080 -p 5432:5432 -d postgres\n```\n\n**Note:** Port mapping is dynamic in this setup to avoid errors that occurred when specifying a static port.\n\n#### Connect to pgAdmin\n\n- **Host Name/Address:** `host.docker.internal`\n- **Port:** Dynamic (it changes each time the container runs).\n\n#### Connect to the Container\n\n```bash\ndocker exec -it postgres-db psql -U postgres\n```\n\n## Useful Docker Commands\n\n### View All Running Containers\n\n```bash\ndocker ps\n```\n\n### Inspect Container Details\n\n```bash\ndocker inspect \u003ccontainer_id\u003e\n```\n\n### Start/Stop a Container\n\n- Start:\n  ```bash\n  docker start postgres-db\n  ```\n- Stop:\n  ```bash\n  docker stop postgres-db\n  ```\n\n### If Port Not Available error\n\n- Start:\n  ```bash\n  net stop winnat\n  ```\n- Stop:\n  ```bash\n  net start winnat\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnithink-142%2Fexpress-postgres-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnithink-142%2Fexpress-postgres-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnithink-142%2Fexpress-postgres-api/lists"}