This is an e-commerce REST API written in Go using Gin framework by following Clean Architecture
UNLICENSE License
JerseyHUB E-Commerce Backend Rest API is a feature-rich backend solution for E-commerce applications developed using Golang with the Gin web framework. This API is designed to efficiently handle routing and HTTP requests while following best practices in code architecture and dependency management.
The application is hosted on AWS EC2 and is served using Nginx, ensuring reliability and scalability.
For interactive API documentation, Swagger is implemented. You can explore and test the API endpoints in real-time.
Security is a top priority for the project:
In collaboration with a team of developers, a mobile application is being built using the Flutter framework to complement this backend API.
To run the project locally, you can follow these steps:
This project is licensed under the [LICENSE_NAME] license - see the LICENSE.md file for details.
go-gin-clean-arch
projectTo use go-gin-clean-arch
project, follow these steps:
# Navigate into the project
cd ./go-gin-clean-arch
# Install dependencies
make deps
# Generate wire_gen.go for dependency injection
# Please make sure you exported the env for GOPATH
make wire
# Run the project in Development Mode
make run
Additional commands:
➔ make help
build Compile the code, build Executable File
run Start application
test Run tests
test-coverage Run tests and generate coverage file
deps Install dependencies
deps-cleancache Clear cache in Go module
wire Generate wire_gen.go
swag Generate swagger docs
mock Generate Mock Files using mockgen
help Display this help screen
Before running the project, you need to set the following environment variables with your corresponding values:
DB_HOST
: Database hostDB_NAME
: Database nameDB_USER
: Database userDB_PORT
: Database portDB_PASSWORD
: Database passwordDB_AUTHTOKEN
: Twilio authentication tokenDB_ACCOUNTSID
: Twilio account SIDDB_SERVICESID
: Twilio services IDAWS_REGION
: AWS regionAWS_ACCESS_KEY_ID
: AWS access key IDAWS_SECRET_ACCESS_KEY
: AWS secret access keyMake sure to provide the appropriate values for these environment variables to configure the project correctly.