https://github.com/mukulmantosh/go-ecommerce-app
Ecommerce Application built using Go, Echo, GORM and Kubernetes
https://github.com/mukulmantosh/go-ecommerce-app
echo-framework go golang gorm gorm-orm kubernetes
Last synced: 7 days ago
JSON representation
Ecommerce Application built using Go, Echo, GORM and Kubernetes
- Host: GitHub
- URL: https://github.com/mukulmantosh/go-ecommerce-app
- Owner: mukulmantosh
- License: apache-2.0
- Created: 2023-08-06T11:41:36.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-10T09:03:57.000Z (over 1 year ago)
- Last Synced: 2024-12-24T07:49:04.384Z (7 months ago)
- Topics: echo-framework, go, golang, gorm, gorm-orm, kubernetes
- Language: Go
- Homepage: https://medium.com/google-cloud/deploying-go-api-on-gke-google-cloud-9cec676bb3a6
- Size: 17.2 MB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ecommerce App using Echo

We intend to develop an e-commerce application with a REST
architecture using the Echo framework. Echo is a Go web framework
known for its exceptional performance, extensibility, and
minimalistic design.
### Prerequisites
Before starting up this project, make sure you have the necessary dependencies installed in your machine.
### Software Installation
- [x] [Go](https://go.dev/) - Go is an open source programming language that makes it simple to build secure, scalable systems.
- [x] [Docker](https://www.docker.com/) - Docker helps developers bring their ideas to life by conquering the complexity of app development.
- [x] [PostgreSQL](https://www.postgresql.org/) - The World's Most Advanced Open Source Relational Database
- [x] [golangci-lint](https://golangci-lint.run/) - is a fast Go linters runner. It runs linters in parallel, uses caching, supports yaml config, etc.
For running Postgres locally using Docker, run the following command:
```bash
docker run --name ecommerce-local-db -p 5432:5432 -e POSTGRES_PASSWORD=******** -d postgres
```Execute in Postgres DB Shell
```sql
create database ecommerce;
```
### Database Schema
### Environment Variables
Before launching the application, be certain to configure the necessary environment variables.
```
- JWT_SECRET
- DB_HOST
- DB_USERNAME
- DB_PASSWORD
- DB_NAME
- DB_PORT
```
Using **Windows**? Run the following command
### Application Startup
#### Running App
```bash
make run
```
#### Building App
```bash
make build
```
#### Executing Tests
```bash
make test
```
## REST Examples
You can find the Postman Collection/HTTP Client for GoLand under `postman_httpclient` directory.

## Docker
You have the option to retrieve the image from [DockerHub](https://hub.docker.com/r/mukulmantosh/go-ecommerce-echo).
### Running Application in Local Kubernetes
Proceed with the instructions to launch your
application within a local Kubernetes cluster,
such as Docker Desktop or Minikube.Before proceeding, make sure to update the ConfigMap.
