{"id":20610742,"url":"https://github.com/anjasfedo/go-postgre","last_synced_at":"2026-04-21T02:01:52.896Z","repository":{"id":217062273,"uuid":"743017749","full_name":"Anjasfedo/go-postgre","owner":"Anjasfedo","description":"RESTful API Golang with PostgreSQL","archived":false,"fork":false,"pushed_at":"2024-01-14T06:59:42.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T17:50:31.264Z","etag":null,"topics":["golang","learning-by-doing","postgresql","restful-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/Anjasfedo.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}},"created_at":"2024-01-14T03:52:10.000Z","updated_at":"2024-01-14T08:42:10.000Z","dependencies_parsed_at":"2024-01-14T11:06:54.937Z","dependency_job_id":null,"html_url":"https://github.com/Anjasfedo/go-postgre","commit_stats":null,"previous_names":["anjasfedo/go-postgres"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Anjasfedo/go-postgre","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anjasfedo%2Fgo-postgre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anjasfedo%2Fgo-postgre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anjasfedo%2Fgo-postgre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anjasfedo%2Fgo-postgre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anjasfedo","download_url":"https://codeload.github.com/Anjasfedo/go-postgre/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anjasfedo%2Fgo-postgre/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32073496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T01:35:38.224Z","status":"online","status_checked_at":"2026-04-21T02:00:06.111Z","response_time":128,"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":["golang","learning-by-doing","postgresql","restful-api"],"created_at":"2024-11-16T10:17:44.832Z","updated_at":"2026-04-21T02:01:52.850Z","avatar_url":"https://github.com/Anjasfedo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go RESTful API with PostgreSQL 🚀\n\nThis project is a simple RESTful API built using GoLang with PostgreSQL.\n\n## Getting Started🛠️\n\nFollow these steps to run the project locally:\n\n1. **Set Up Database:**\n\n   Make sure you have PostgreSQL installed and create a database named go_postgres. Update the .env file with your PostgreSQL connection URL.\n\n2. **Set Up Database:**\n\n```bash\ngo run main.go\n```\n\nThe server will start at http://localhost:8000.\n\n## API Endpoints🚪\n\n### Get Stocks\n\n- **Endpoint:** `GET /api/stock`\n- **Description:** Retrieve a list of all Stocks.\n\n### Get Stock by ID\n\n- **Endpoint:** `GET /api/stock/:id`\n- **Description:** Retrieve a specific stock by ID.\n\n### Create Stock\n\n- **Endpoint:** `POST /api/stock`\n- **Description:** Create a new stock.\n\n### Update Stock by ID\n\n- **Endpoint:** `PUT /api/stock/:id`\n- **Description:** Update a specific stock by ID.\n\n### Delete Stock by ID\n\n- **Endpoint:** `DELETE /api/stock/:id`\n- **Description:** Delete a specific stock by ID.\n\nThe API Postman Collection is available in the /postman-collection/ directory.\n\n## Dependencies 📦\n\n- [gorilla/mux](https://github.com/gorilla/mux) v1.8.1: HTTP request router\n- [joho/godotenv](https://github.com/joho/godotenv) v1.5.1: GoDotEnv for Go (loads environment variables from a .env file)\n- [lib/pq](https://github.com/lib/pq) v1.10.9: PostgreSQL driver for Go (indirect)\n\n## Closing Notes📝\n\nIf you find any issues or have suggestions for improvement, please feel free to open an issue or submit a pull request.\n\nHappy coding!🚀👨‍💻\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanjasfedo%2Fgo-postgre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanjasfedo%2Fgo-postgre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanjasfedo%2Fgo-postgre/lists"}