{"id":18593513,"url":"https://github.com/syed007hassan/go-with-postgresql","last_synced_at":"2026-05-01T19:31:50.733Z","repository":{"id":159975779,"uuid":"612200881","full_name":"Syed007Hassan/GO-With-PostgreSQL","owner":"Syed007Hassan","description":"Implemented REST APIs that perform CRUD operations with PostgreSQL","archived":false,"fork":false,"pushed_at":"2023-03-11T07:47:52.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T10:45:22.833Z","etag":null,"topics":["golang","postgresql","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/Syed007Hassan.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-03-10T12:18:44.000Z","updated_at":"2025-02-19T11:57:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbdcae1c-141e-4b8a-9f74-6a8e4e5a7bee","html_url":"https://github.com/Syed007Hassan/GO-With-PostgreSQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Syed007Hassan/GO-With-PostgreSQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syed007Hassan%2FGO-With-PostgreSQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syed007Hassan%2FGO-With-PostgreSQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syed007Hassan%2FGO-With-PostgreSQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syed007Hassan%2FGO-With-PostgreSQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Syed007Hassan","download_url":"https://codeload.github.com/Syed007Hassan/GO-With-PostgreSQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syed007Hassan%2FGO-With-PostgreSQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32510626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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","postgresql","rest-api"],"created_at":"2024-11-07T01:12:45.681Z","updated_at":"2026-05-01T19:31:50.712Z","avatar_url":"https://github.com/Syed007Hassan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GO-With-PostgresSQL\n\n* Implemented REST APIs that perform CRUD operations with PostgreSQL \n\n```\nrouter.HandleFunc(\"/api/stock/{id}\", middleware.GetStock).Methods(\"GET\", \"OPTIONS\")\nrouter.HandleFunc(\"/api/stock\", middleware.GetAllStocks).Methods(\"GET\", \"OPTIONS\")\nrouter.HandleFunc(\"/api/newstock\", middleware.CreateStock).Methods(\"POST\", \"OPTIONS\")\nrouter.HandleFunc(\"/api/stock/{id}\", middleware.UpdateStock).Methods(\"PUT\", \"OPTIONS\")\nrouter.HandleFunc(\"/api/deletestock/{id}\", middleware.DeleteStock).Methods(\"DELETE\", \"OPTIONS\")\n```\n\n\u003cp align=\"centre\" \u003e\n  \n  \u003cimg src=\"https://user-images.githubusercontent.com/104893311/224471343-f439402f-7006-4b24-bc50-3c4e8379414d.png\"\u003e\n\n\u003c/p\u003e\n\n\n\n\u003cp align=\"centre\" \u003e\n  \n  \u003cimg src=\"https://user-images.githubusercontent.com/104893311/224471468-e23ebf82-fc56-4fc7-9393-3ece766d50dc.png\"\u003e\n\n\u003c/p\u003e\n\n\n\n\u003cp align=\"centre\" \u003e\n  \n  \u003cimg src=\"https://user-images.githubusercontent.com/104893311/224471599-48fd0da1-b80c-4542-9462-00376acf83e9.png\"\u003e\n\n\u003c/p\u003e\n\n\n\n\u003cp align=\"centre\" \u003e\n  \n  \u003cimg src=\"https://user-images.githubusercontent.com/104893311/224471753-e72039d4-fce5-4a45-815f-d356f6cee781.png\"\u003e\n\n\u003c/p\u003e\n\n\n\n\u003cp align=\"centre\" \u003e\n  \n  \u003cimg src=\"https://user-images.githubusercontent.com/104893311/224471807-43c9cbfd-87cc-47a7-b86d-d7a54852a3aa.png\"\u003e\n\n\u003c/p\u003e\n\n\n\n* To configure DB connection use:\n\n```\nPOSTGRES_URL=\"postgres://\u003cusername\u003e:\u003cpassword\u003e@localhost:5432/\u003cdb_name\u003e?sslmode=disable\"\n```\n\n* To run:\n\n```\ngo run main.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyed007hassan%2Fgo-with-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyed007hassan%2Fgo-with-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyed007hassan%2Fgo-with-postgresql/lists"}