{"id":20931840,"url":"https://github.com/say8hi/go-crud-api","last_synced_at":"2025-07-09T16:37:10.611Z","repository":{"id":224906410,"uuid":"764522743","full_name":"say8hi/go-crud-api","owner":"say8hi","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-28T10:10:45.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T06:03:03.738Z","etag":null,"topics":["crud","golang","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/say8hi.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}},"created_at":"2024-02-28T08:27:11.000Z","updated_at":"2024-02-29T11:47:48.000Z","dependencies_parsed_at":"2024-02-28T10:59:42.482Z","dependency_job_id":null,"html_url":"https://github.com/say8hi/go-crud-api","commit_stats":null,"previous_names":["say8hi/go-crud-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/say8hi/go-crud-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/say8hi%2Fgo-crud-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/say8hi%2Fgo-crud-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/say8hi%2Fgo-crud-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/say8hi%2Fgo-crud-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/say8hi","download_url":"https://codeload.github.com/say8hi/go-crud-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/say8hi%2Fgo-crud-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264495338,"owners_count":23617531,"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":["crud","golang","rest-api"],"created_at":"2024-11-18T21:46:01.522Z","updated_at":"2025-07-09T16:37:10.508Z","avatar_url":"https://github.com/say8hi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go PostgreSQL CRUD API\n\nThis is a simple CRUD (Create, Read, Update, Delete) API example in Go for interacting with a PostgreSQL database. The application provides HTTP endpoints for managing users in the database.\n\n## Functionality\n\n- Create a new user\n- Retrieve user information by ID\n- Update user information\n- Delete a user by ID\n\n## Technologies\n\n- Programming Language: Go\n- Web Framework: Standard net/http library\n- Database: PostgreSQL\n- Docker: For containerizing the application and database\n- Docker Compose: For managing the multi-container application\n\n## How to Use\n\n1. Install Docker and Docker Compose if not already installed on your machine.\n2. Clone the repository to your machine: `git clone https://github.com/say8hi/go-crud-api.git`\n3. Navigate to the project directory: `cd go-postgresql-crud`\n4. Create a .env file and specify the PostgreSQL database connection parameters (see .env.example for an example).\n5. Start the application using the command `docker-compose up`.\n6. The application will be accessible at `http://localhost:8080`.\n\n## Project Structure\n\n```bash\ngo-crud-api/\n|- main.go\n|- handlers/\n| |- users.go\n|- database/\n| |- postgres.go\n|- models/\n| |- user.go\n|- Dockerfile\n|- docker-compose.yml\n|- .env\n```\n\n## Contribution\n\nIf you find a bug or want to suggest an improvement, please create an Issue or Pull Request in this repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsay8hi%2Fgo-crud-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsay8hi%2Fgo-crud-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsay8hi%2Fgo-crud-api/lists"}