{"id":18712282,"url":"https://github.com/akshayur04/project-ecommerce","last_synced_at":"2025-11-09T19:30:18.656Z","repository":{"id":142132829,"uuid":"609423285","full_name":"akshayUr04/project-ecommerce","owner":"akshayUr04","description":"Ecommerce Backend Api Using Go Programing Language","archived":false,"fork":false,"pushed_at":"2023-08-18T15:46:12.000Z","size":313402,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T08:27:01.621Z","etag":null,"topics":["clean-architecture","gin-framework","golagn","gorm","jw","psql-database","swagger","viper","wire"],"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/akshayUr04.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-03-04T05:52:18.000Z","updated_at":"2023-08-18T15:39:13.000Z","dependencies_parsed_at":"2023-08-18T17:09:57.777Z","dependency_job_id":null,"html_url":"https://github.com/akshayUr04/project-ecommerce","commit_stats":null,"previous_names":["akshayur04/project-ecommerce"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayUr04%2Fproject-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayUr04%2Fproject-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayUr04%2Fproject-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayUr04%2Fproject-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akshayUr04","download_url":"https://codeload.github.com/akshayUr04/project-ecommerce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576798,"owners_count":19662113,"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":["clean-architecture","gin-framework","golagn","gorm","jw","psql-database","swagger","viper","wire"],"created_at":"2024-11-07T12:42:12.931Z","updated_at":"2025-11-09T19:30:18.582Z","avatar_url":"https://github.com/akshayUr04.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ecommerce Project using Go Programming with Gin Framework\nThis project is an ecommerce application built using Go programming language and the Gin framework. It follows the clean code architecture, which promotes separation of concerns and maintainability.\n\n## Project Overview\nThe project is designed to provide a performant and feature-rich ecommerce solution. It includes functionalities such as user authentication, product management, shopping cart, order processing, and payment integration.\n\n## Used Packages\nThe project utilizes the following packages:\n1. [GIN](github.com/gin-gonic/gin): A web framework written in Go that combines high performance with an API similar to Martini.\n2. [JWT](github.com/golang-jwt/jwt): A Go implementation of JSON Web Tokens for secure authentication and authorization.\n3. [GORM](https://gorm.io/index.html) with [PostgreSQL](https://gorm.io/docs/connecting_to_the_database.html#PostgreSQL): A powerful ORM library for Go that simplifies database operations.\n4. [Wire](https://github.com/google/wire): A code generation tool for dependency injection, making it easier to connect components.\n5. [Viper](https://github.com/spf13/viper): A configuration solution for Go applications, supporting various formats and 12-Factor app principles.\n6. [swag](https://github.com/swaggo/swag) with [gin-swagger](https://github.com/swaggo/gin-swagger) and [swaggo files](github.com/swaggo/files): Converts Go annotations to Swagger Documentation 2.0 for API documentation.\n7. [Twilio](https://github.com/twilio/twilio-go): A Go client library for the Twilio API, enabling communication via SMS, voice, and other channels.\n8. [Razorpay](https://github.com/razorpay/razorpay-go): A Go client library for the Razorpay API, facilitating payment processing and \nmanagement.\nPlease refer to the respective package documentation for more information on how to use and integrate these packages into your Go application.\n\n# Setup Instructions\nTo use and test project, please follow these steps:\n\n### Prerequisites\nMake sure you have the following installed on your system:\n- Go (https://golang.org/doc/install)\n- PostgreSQL (https://www.postgresql.org/download/)\n- Twillio Account (https://www.twilio.com/en-us)\n\n### 1. Clone the Repository\nClone the project-ecommerce repository to your local system:\n```bash\ngit clone https://github.com/akshayUr04/project-ecommerce.git\ncd project-ecommerce\n```\n### 2. Install Dependencies\nInstall the required dependencies using either the provided Makefile command or Go's built-in module management:\n```bash\n# Using Makefile\nmake deps\n# OR using Go\ngo mod tidy\n```\n### 3. Configure Environment Variables\ndetails provided at the end of the file\n### 4. Make Swagger Files (For Swagger API Documentation)\n```bash\nmake swag\n```\n# To Run The Application\n```bash\nmake run\n```\n### To See The API Documentation\n1. visit [swagger] ***http://localhost:8000/swagger/index.html***\n\n# To Test The Application\n### 1. Generate Mock Files\n```bash\nmake mockgen\n```\n### 2. Run The Test Functions\n```bash\nmake test\n```\n\n# Set up Environment Variables\nSet up the necessary environment variables in a .env file at the project's root directory. Below are the variables required:\n```.env\n### PostgreSQL database details\nDB_NAME=\"your database name\"\nDB_USER=\"your database user name\"\nDB_PASSWORD=\"your database owner password\"\nDB_PORT=\"your database running port number\"\n### Twilio\nAUTH_TOKEN=\"your Twilio authentication token\"\nACCOUNT_SID=\"your Twilio account SID\"\nSERVICE_SID=\"your Twilio messaging service SID\"\n### Razorpay\nRAZOR_PAY_KEY=\"your Razorpay API test key\"\nRAZOR_PAY_SECRET=\"your Razorpay API test secret key\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshayur04%2Fproject-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakshayur04%2Fproject-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshayur04%2Fproject-ecommerce/lists"}