Skip to content

theodesp/flask-golang-grpc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

docker-compose up

LICENCE

MIT Theo Despoudis 2017

About

An example platform integrating a flask client, a golang server with mongoDb and gRPC for communication

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published