https://github.com/theodesp/flask-golang-grpc-example
An example platform integrating a flask client, a golang server with mongoDb and gRPC for communication
https://github.com/theodesp/flask-golang-grpc-example
docker docker-compose example-project flask golang grpc microservice mongodb
Last synced: about 1 year ago
JSON representation
An example platform integrating a flask client, a golang server with mongoDb and gRPC for communication
- Host: GitHub
- URL: https://github.com/theodesp/flask-golang-grpc-example
- Owner: theodesp
- License: mit
- Created: 2017-12-08T13:15:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-19T19:33:33.000Z (over 8 years ago)
- Last Synced: 2024-10-19T07:51:49.828Z (over 1 year ago)
- Topics: docker, docker-compose, example-project, flask, golang, grpc, microservice, mongodb
- Language: Python
- Size: 4.88 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Flask, Golang, gRPC, MongoDB example Project
---
This repo demonstrates a dockerized Flask, Golang, gRPC, MongoDB microservice.
It could serve as a template for a project based on gRPC or for quick experiments.
## Quickstart
TODO
## User Directory Service
An example User directory service is implemented as a GRPC service, split into:
* src/proto/userDirectory.proto: grpc service description with protobuf
* src/server/main.go: go implementation of the user directory server. It will connect itself to a mongoDb server.
* client/app.py: Flask application implementation of the echo client. It will listen to http requests
and forward them to the server backend
## Docker Containers
For quick and easy setup of the project, I've included a DockerCompose.yml file that orchestrates the
services. Just run in the base directory:
```bash
docker-compose up
```
## LICENCE
MIT Theo Despoudis 2017