Skip to content

Repository files navigation

gRPC

The repository presents a simple Tweeter streaming app that is based on gRPC.

Getting Started

The app has been written in 3 popular languages: php, python and node.

Docker

The latest changes bring docker configuration. Instead of using vagrant you can use Docker that is recommended solution. More details can be found in README.md file.

Vagrant (deprecated)

To simplify the setup you can use Vagrant configuration that was prepared.

git clone https://github.com/partikus/grpc cd grpc
vagrant up # if provisioning fail please run `vagrant provision`# then if provisioning success 
vagrant ssh
cd /home/app
./build.sh ${language}# supported languages: php, python, nodejs

** Windows users must have installed winnfsd vagrant plugin **

Materials

https://developers.google.com/protocol-buffers/docs/proto3https://eli.thegreenplace.net/2011/08/02/length-prefix-framing-for-protocol-buffershttps://codeclimate.com/blog/choose-protocol-buffers/

Python

https://grpc.io/docs/tutorials/basic/python.htmlhttp://docs.python-guide.org/en/latest/writing/structure/

virtualenv venv
source venv/bin/activate.fish
python -m pip install --upgrade pip
python setup.py install
python -m pip install -r requirements

NodeJS

https://grpc.io/docs/quickstart/node.htmlhttps://grpc.io/docs/tutorials/basic/node.htmlhttp://pm2.keymetrics.io/https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages