Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/watchakorn-18k/go-grpc-fiber-mongo


https://github.com/watchakorn-18k/go-grpc-fiber-mongo

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# GRPC

- `proto` for proto file
- `server` for connect to database
- `client` for connect to server with grpc normal
- `client-fiber` for connect to server with fiber
- `restful` for connect to server with restful

### `proto` build
```
proto/gen.cmd
```

### `server` run
```
cd server
go mod
go run main.go
```

## Clients

### `client` run
```
cd client
go mod
go run main.go
```

### `client-fiber` run
```
cd client-fiber
go mod
go run main.go
```
GET http://localhost:3000/user/test_1234

### `restful` run
```
cd restful
go mod
go run main.go
```
GET http://localhost:3000/user/test_1234