How to set up Zulip development environment on ubuntu 18.04

suraj patil
2 min readMar 13, 2020

--

step 1

1. Install Vagrant, Docker, and Git

use this command to install vagrant docker.io and git on our ubuntu 18.0 machine

2. Add yourself to the docker group:

we need to add a user to the docker it can be achieved by this command

after this restart the terminal.

If it worked, you will see docker in your list of groups:

3. Make sure the Docker daemon is running

if it’s not working or showing error Active: inactive (dead) then will need to enable and start the Docker service using this.

Step 2: Get Zulip Code

this is a very important step of this process, in this step we need to fork the Zulip and need to get the source code for development purpose

1] In your browser, visit https://github.com/zulip/zulip and click the fork button. You will need to be logged in to GitHub to do this.

2]Clone the forked repo to your machine

$ git clone --config pull.rebase https://github.com/YOUR_USERNAME/zulip.git

use cd zulip to changing the cd to zulip

3] Connect your fork to Zulip upstream

$ git remote -v
origin git@github.com:YOUR_USERNAME/zulip.git (fetch)
origin git@github.com:YOUR_USERNAME/zulip.git (push)

4]connecting to the upstream

git remote add -f upstream https://github.com/zulip/zulip.git

Step 3: Starting the development environment

vagrant up --provider=docker

it will load the required things to run the zulip

Once vagrant up has completed, connect to the development environment with vagrant ssh

suraj@spielers ~/zulip
$ vagrant ssh

Congrats, you’re now inside the Zulip development environment!

starting the Zulip server:

(zulip-py3-venv) vagrant@ubuntu-bionic:/srv/zulip
$ ./tools/run-dev.py

Now the Zulip server should be running and accessible. Verify this by navigating to http://localhost:9991/ in the browser on your main machine.

hope this will help you,

more links ref;

Thank you,

Suraj Patil

spielers

--

--