set up the whole server module for mini marketplace platform
.
├── cmd
| ├── gateway
| | └── main.go // Main App for Gateway Service
| ├── product
| | └── main.go // Main App for Product Service
| └── user
| └── main.go // Main App for User Service
├── gateway // Packages used inside the project, including packages for crud, service (facade) and business logic
│ ├── api
│ ├── client
│ └── mock
├── product // Packages used inside the project, including packages for grpc, service (facade) and business logic
│ ├── api
│ ├── database
│ └── mock
├── gateway // Packages used inside the project, including packages for grpc, service (facade) and business logic
│ ├── api
│ ├── database
│ └── mock
├── pkg // Additional Package
├── docker-compose.yml
├── Dockerfile
├── generate-pb.sh
├── uuid.go
├── go.mod
├── go.sum
└── README.md
- Go 1.14
- MySQL 5.7
- Redis 4.0+
- Docker
- Docker Compose
to run this service you should have Docker installed beforehand.
build service
$ docker compose build
to run this service
$ docker compose up