Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isaquemicroservices/customer
🥳 Microservice of customer built with golang and gRPC
https://github.com/isaquemicroservices/customer
customers-services ddd-architecture grpc grpc-go microservice microservices-application
Last synced: 1 day ago
JSON representation
🥳 Microservice of customer built with golang and gRPC
- Host: GitHub
- URL: https://github.com/isaquemicroservices/customer
- Owner: isaquemicroservices
- License: mit
- Created: 2022-02-15T18:05:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-15T18:46:10.000Z (almost 3 years ago)
- Last Synced: 2024-11-15T07:29:22.193Z (2 months ago)
- Topics: customers-services, ddd-architecture, grpc, grpc-go, microservice, microservices-application
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 🥳 Building microservices to manage customer data using Go and gRPC
Command to generate protobuf
```go
$ protoc -I . protos/customer/customer.proto --go_out=plugins=grpc:./application
```### Create folder for config.json file
```bat
$ sudo mkdir /etc/ms-customer
$ sudo touch /etc/ms-customer/config.json
$ sudo cp ./config.json /etc/ms-customer/config.json
$ sudo chmod 777 /etc/ms-customer/config.json
```
if you changed the config.json file, use the command at the bottom to update the config.json file on your computer
```bat
$ sudo cp ./config.json /etc/ms-customer/config.json
```command to run the test
```go
$ go test ./... --cover
```Command to generate test files
```go
$ go test -coverprofile cover.out
$ go tool cover -html=cover.out -o cover.html
```Create table in PostgreSQL
```sql
```