Skip to content

techresidents/chatsvc

Repository files navigation

Tech Residents Chat Service

Development environment:
1) Make sure the following ports are installed:
    $ sudo port install thrift
    $ sudo port install libevent
    $ sudo port install libzookeeper
    $ sudo port install zmq

2) Create virtualenv and install requirements
    $ mkvirtualenv chatsvc
    $ python bootstrap.py

    OR (alternative to bootstrap.py)

    $ CFLAGS=-I/opt/local/include pip install -r requirements/requirements.txt


3) Running chatsvc w/ Twilio

    #establsh tunnel to localhost 6767 using localtunnel
    $ lt --port 6767
    your url is: http://kyqn.localtunnel.me

    #configure Twilio to use tunnel
    $ ./scripts/twilio_tunnel http://kyqn.localtunnel.me

    #run chatsvc
    $ python chatsvc/chatsvc.py