An app which allows multiple people to hack on problems, collaboratively, in realtime. The app will also support inbuilt analytics to ensure efficiency of the code.
Started as a final year project.
- gevent-socketio
- flask
- flask-socketio
- pika
- ipdb (for debugging purposes)
- gevent-websocket
Installation:
Install python-devel:
$ sudo yum install python-devel
Create a virtual environment, codecast
, and install the dependencies:
$ sudo pip install virtualenvwrapper $ export WORKON_HOME=~/Envs $ mkdir -p $WORKON_HOME $ source /usr/bin/virtualenvwrapper.sh $ mkvirtualenv codecast
Run in the project directory:
$ pip install -r requirements.txt
- rabbitmq-server
Installation:
$ sudo yum install rabbitmq-server
Start the rabbitmq server with root priveleges:
$ sudo rabbitmq-server
In a new terminal, switch to codecast virtualenv:
$ workon codecast
Start the flask server:
$ python server.py
Now, open a browser, and point to
localhost:5000
, to fire up a client.
Enable the RabbitMQ management plugin:
$ sudo rabbitmq-plugins enable rabbitmq_management
Browse to
localhost:15672
to have a look at the RabbitMQ dashboard.Tail the log files (log directory:
src/logs/
):$ tail -f consumer.log $ tail -f publisher.log