{"id":49914289,"url":"https://github.com/sudosurya/ecommerce-gadgets-backend","last_synced_at":"2026-05-16T15:04:50.622Z","repository":{"id":174188927,"uuid":"651842101","full_name":"SudoSurya/Ecommerce-Gadgets-Backend","owner":"SudoSurya","description":"The backend of the e-commerce application is built using Go, Gin, and MongoDB. Go is a powerful programming language known for its simplicity and efficiency, making it an excellent choice for building robust web applications. Gin is a lightweight web framework for Go that provides a simple and intuitive API for creating RESTful APIs.","archived":false,"fork":false,"pushed_at":"2024-02-08T16:37:07.000Z","size":18745,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T05:51:48.430Z","etag":null,"topics":["gin","golang","mongodb","postman"],"latest_commit_sha":null,"homepage":"https://documenter.getpostman.com/view/21427214/2s93sc4sWv","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/SudoSurya.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-06-10T09:04:11.000Z","updated_at":"2023-06-24T13:34:20.000Z","dependencies_parsed_at":"2023-11-27T18:41:36.211Z","dependency_job_id":null,"html_url":"https://github.com/SudoSurya/Ecommerce-Gadgets-Backend","commit_stats":null,"previous_names":["20pa5a1210/ecommerce-gadgets-backend","sudosurya/ecommerce-gadgets-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SudoSurya/Ecommerce-Gadgets-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SudoSurya%2FEcommerce-Gadgets-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SudoSurya%2FEcommerce-Gadgets-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SudoSurya%2FEcommerce-Gadgets-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SudoSurya%2FEcommerce-Gadgets-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SudoSurya","download_url":"https://codeload.github.com/SudoSurya/Ecommerce-Gadgets-Backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SudoSurya%2FEcommerce-Gadgets-Backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33107568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["gin","golang","mongodb","postman"],"created_at":"2026-05-16T15:04:49.604Z","updated_at":"2026-05-16T15:04:50.611Z","avatar_url":"https://github.com/SudoSurya.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-Commerce Application with Go, Gin, and MongoDB\n# Backend Setup\n\nThe backend of the e-commerce application is built using Go, Gin, and MongoDB. Go is a powerful programming language known for its simplicity and efficiency, making it an excellent choice for building robust web applications. Gin is a lightweight web framework for Go that provides a simple and intuitive API for creating RESTful APIs. MongoDB, a popular NoSQL database, is used for storing and managing the application's data. With MongoDB, you can benefit from its flexibility and scalability, making it a suitable choice for an e-commerce application that may handle a large volume of data. The backend project is organized into different components, such as routes, controllers, and models, following best practices for structuring a Go web application. By leveraging the power of Go, Gin, and MongoDB, the backend provides a reliable and efficient foundation for the e-commerce application.\n\n## Prerequisites\n\n- [Go](https://golang.org/doc/install)\n- [MongoDB](https://docs.mongodb.com/manual/installation/)\n- [Postman](https://www.postman.com/downloads/)\n\n## Getting Started\n\nTo get started, clone the repository and navigate to the project directory.\n\n```bash \ngit clone \ncd backend\ngo mod download\ngo run main.go\n```\n\n## Project Structure\n\nThe project is organized into different components, such as routes, controllers, and models, following best practices for structuring a Go web application.\n\n``` \n├── controllers\n│   ├── products.go\n│   └── users.go\n├── database\n│   └── database.go\n├── middlewares\n│   └── auth.go (JWT authentication)\n├── models\n│   ├── product.go\n│   └── user.go\n├── routes\n│   ├── products.go\n│   └── users.go\n├── utils\n│   ├── error.go\n│   └── response.go\n├── .gitignore\n├── go.mod\n├── go.sum\n├── main.go\n└── README.md\n```\n## Technologies\n\n- [Go](https://golang.org/)\n- [Gin]\n- [MongoDB](https://www.mongodb.com/)\n- [JWT](https://jwt.io/)\n- [Postman](https://www.postman.com/)\n- [Visual Studio Code](https://code.visualstudio.com/)\n- [MongoDB Compass](https://www.mongodb.com/products/compass)\n\n## API Endpoints\nhttps://documenter.getpostman.com/view/21427214/2s93sc4sWv\n\nThe backend provides the following API endpoints for managing the application's data.\n\n### Products \n\n- `GET /products` - Get all products\n- `GET /products/:id` - Get a single product\n- `GET /products/page?page?=1\u0026pageSize=2` - Get products with pagination\n### Users\n\n- `POST /users/register` - Register a new user\n- `POST /users/login` - Login an existing user\n- `GET /users/profile` - Get user profile\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudosurya%2Fecommerce-gadgets-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudosurya%2Fecommerce-gadgets-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudosurya%2Fecommerce-gadgets-backend/lists"}