Installation¶
There are two types of Installation. One using rabbitChat as a binary by installaing from pip and running the application in the local machine directly. Another method is running the application from Docker. Hence another set of installation steps for the Docker use case.
[Docker Method] Prerequisite (Optional)¶
To safegurad secret and confidential data leakage via your git commits to public github repo, check git-secrets
.
This git secrets project helps in preventing secrete leakage by mistake.
[Docker Method] Dependencies¶
- Docker
- Make (Makefile)
See, there are so many technologies used mentioned in the tech specs and yet the dependencies are just two. This is the power of Docker.
[Docker Method] Install¶
Step 1 - Install Docker
Follow my another github project, where everything related to DevOps and scripts are mentioned along with setting up a development environemt to use Docker is mentioned.
- Go to setup directory and follow the setup instructions for your own platform, linux/macos
Step 2 - Install Make
# (Mac Os) $ brew install automake # (Ubuntu) $ sudo apt-get update $ sudo apt-get install make
Step 3 - Install Dependencies
Install the following dependencies on your local development machine which will be used in various scripts.
- openssl
- ssh-keygen
- openssh
[Standalone Binary Method] Prerequisites¶
- python 2.7+
- tornado
- sockjs-tornado
- sockjs-client
- pika
- rabbitMQ
[Standalone Binary Method] Install¶
$ pip install rabbitChat
If above dependencies do not get installed by the above command, then use the below steps to install them one by one.
Step 1 - Install pip
Follow the below methods for installing pip. One of them may help you to install pip in your system.
- Method 1 - https://pip.pypa.io/en/stable/installing/
- Method 2 - http://ask.xmodulo.com/install-pip-linux.html
- Method 3 - If you installed python on MAC OS X via
brew install python
, then pip is already installed along with python.Step 2 - Install tornado
$ pip install tornadoStep 3 - Install sockjs-tornado
$ pip install sockjs-tornadoStep 4 - Install pika
$ pip install pikaStep 5 - Install RabbitMQ
For
Mac
Users1. Brew Install RabbitMQ
$ brew install rabbitmqFor
Ubuntu/Linux
Users1. Enable RabbitMQ application repository
$ echo "deb http://www.rabbitmq.com/debian/ testing main" >> /etc/apt/sources.list2. Add the verification key for the package
$ wget -o http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | sudo apt-key add -3. Update the sources with our new addition from above
$ apt-get update4. And finally, download and install RabbitMQ
$ sudo apt-get install rabbitmq-server