No description, website, or topics provided.
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
nodejs
php
python
.env.dist
.gitignore
LICENSE
README.md
Vagrantfile
build.sh
docker.sh
provision.sh
twitter.proto

README.md

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/proto3 https://eli.thegreenplace.net/2011/08/02/length-prefix-framing-for-protocol-buffers https://codeclimate.com/blog/choose-protocol-buffers/

Python

https://grpc.io/docs/tutorials/basic/python.html http://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.html https://grpc.io/docs/tutorials/basic/node.html http://pm2.keymetrics.io/ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures