{"id":17917371,"url":"https://github.com/pushkarm029/shopping-app-backend-go","last_synced_at":"2026-05-06T02:36:26.738Z","repository":{"id":193120987,"uuid":"688163211","full_name":"Pushkarm029/Shopping-App-Backend-GO","owner":"Pushkarm029","description":"Created Shopping App Backend using Go, Gin, GORM \u0026 Postgres which can perform CRUD operation.","archived":false,"fork":false,"pushed_at":"2023-10-17T13:42:38.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T21:29:04.540Z","etag":null,"topics":["api","docker","docker-compose","go-gin","go-gorm","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/Pushkarm029.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}},"created_at":"2023-09-06T19:27:28.000Z","updated_at":"2024-01-28T08:07:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e83d8e5-ade3-4e6f-ba81-935cbe41913d","html_url":"https://github.com/Pushkarm029/Shopping-App-Backend-GO","commit_stats":null,"previous_names":["pushkarm029/amazon-shopping-backend","pushkarm029/shopping-app-backend-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pushkarm029%2FShopping-App-Backend-GO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pushkarm029%2FShopping-App-Backend-GO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pushkarm029%2FShopping-App-Backend-GO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pushkarm029%2FShopping-App-Backend-GO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pushkarm029","download_url":"https://codeload.github.com/Pushkarm029/Shopping-App-Backend-GO/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246961923,"owners_count":20861177,"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":["api","docker","docker-compose","go-gin","go-gorm","golang","postgresql","rest-api"],"created_at":"2024-10-28T20:06:33.135Z","updated_at":"2025-10-16T01:04:01.358Z","avatar_url":"https://github.com/Pushkarm029.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## **🔥 Introduction**\nThis documentation provides an overview of the APIs available for a shopping app. These APIs allow users and sellers to interact with the shopping platform by performing actions such as user registration, login, product management, cart management, and order management etc.\n\n## **💥 APIs**\n\n```go\n\tr.POST(\"/api/user/login\", userauth.Login)\n\tr.POST(\"/api/user/register\", userauth.Register)\n\tr.POST(\"/api/seller/login\", sellerauth.Login)\n\tr.POST(\"/api/seller/register\", sellerauth.Register)\n\tr.POST(\"/api/seller/addproduct\", middleware.RequireSellerAuth, sellerhandler.AddProduct)\n\tr.GET(\"/api/seller/getproduct\", middleware.RequireSellerAuth, sellerhandler.Get_Product)\n\tr.GET(\"/api/getallproducts\", userhandler.Search_Product)\n\tr.DELETE(\"/api/seller/delete\", middleware.RequireSellerAuth, sellerhandler.RemoveProduct)\n\tr.PUT(\"/api/seller/update\", middleware.RequireSellerAuth, sellerhandler.Update_Product)\n\tr.POST(\"/api/user/addcart\", userhandler.Add_Item_In_Cart)\n\tr.DELETE(\"/api/user/removecart\", userhandler.Remove_Item_In_Cart)\n\tr.GET(\"/api/user/viewcart\", userhandler.View_Item_In_Cart)\n\tr.POST(\"/api/user/placeorder\", middleware.RequireUserAuth, userhandler.Place_Order)\n\tr.DELETE(\"/api/user/cancelorder\", middleware.RequireUserAuth, userhandler.Cancel_Order)\n\tr.GET(\"/api/user/vieworder\", middleware.RequireUserAuth, userhandler.View_Purchased_Items)\n```\n## **🛠️ Local Development** :\n\n1. Open your terminal and then type\n    ```shell\n    $ git clone https://github.com/Pushkarm029/Amazon-Shopping-Backend\n    ```\n2. cd into the folder\n    ```shell\n    $ cd Amazon-Shopping-Backend/\n    ```\n3. install all go dependencies\n   ```shell\n   $ go get ./...\n   ```\n4. Start Database on :5432\n   ```shell\n   docker compose up\n   ```\n5. Start the server on :8080\n    ```shell\n    go run main.go\n    ```\n6. Testing API's\n   ```shell\n   Add postman_examples/Amazon Backend.postman_collection.json in Postman Collection\n   ```\n\n**Note : You need to restart backend server after every change in any .go file.**\n\n## **❤️ Learnings** :\n- Implementation of GORM.\n- Basics of PostgreSQL.\n- use of Postman Collections.\n\n## **⛑️ Maintenance** :\n\nFeel free to open issue to add a feature request or report any BUG. It will be appreciated from the depth of my heart❤️.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushkarm029%2Fshopping-app-backend-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushkarm029%2Fshopping-app-backend-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushkarm029%2Fshopping-app-backend-go/lists"}