27 C
Texas

Taiga Project Management System Ubuntu 20.04

In this article, you’ll learn that how to install Taiga Project Management System On Ubuntu 20.04. Taiga is an open source most popular tool for startups, agile developers & designers. Taiga support the teams that work Agile across both Scrum & Kanban frameworks. It’s frontend is written in the Javascript & the backend in Python & Django. Taiga is very useful & powerful application that helps you to handle both simple & complex projects. You’ve also the options to integrate taiga with many services like Kanban, Scrum, Talky.io etc. So, here we’ll see the steps to install the Taiga Project Management on Ubuntu 20.04.

Step 1: Update Your System

First of all update your system to have the latest updates installed.

sudo apt update -y

And install the required dependencies by typing.

- Advertisement -
sudo apt install git gnupg2 pwgen automake wget curl gettext python3 virtualenvwrapper python3-dev python3-pip python3-dev libssl-dev tmux build-essential libgdbm-dev binutils-doc autoconf flex gunicorn bison libjpeg-dev libzmq3-dev libfreetype6-dev zlib1g-dev libncurses5-dev libtool libxslt-dev libxml2-dev libffi-dev

And then setup the hostname by typing

sudo hostnamectl set-hostname taiga.osradar.com

Then bind the hostname with system IP by editing /etc/host file.

sudo nano /etc/hosts
192.168.154.128         taiga.osradar.com

Note: Replace your server IP & domain with your own.

Then save & exit the file.

Step 2: Install Node.js on Ubuntu 20.04

Install the latest version of Node.js on Ubuntu 20.04 by adding the repository on your system.

sudo curl -sL https://deb.nodesource.com/setup_12.x | bash -
sudo apt install nodejs -y

Once the installation finihed, verify the installed java version.

node -v

Step 3: Install & Configure PostgreSQL On Ubuntu 20.04

Fire the following commands to install the PostgreSQL on Ubuntu 20.04.

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
apt update -y
apt install postgresql -y

Then update the PostgreSQL password by typing

passwd postgres

Now, switch to the postgres user & create a new user for Taiga by typing

sudo su - postgres
createuser taiga

Then login to to the PostgreSQL by typing psql

Next create a database with the following commands.

ALTER USER osradaruser WITH ENCRYPTED password 'password';
 CREATE DATABASE osradardb OWNER osradaruser;
 \q
 exit

Step 4: Install RabbitMQ & Redis On Ubuntu 20.04

RabbitMQ & Redis are required for Taiga as message broker & caching respectively. So, install them by typing

sudo apt install rabbitmq-server redis-server -y

Once installed, create a new user & virtual host for RabbitMQ by typing the given commands.

rabbitmqctl add_user osradar password
 rabbitmqctl add_vhost osradar
 rabbitmqctl set_permissions -p  osradar osradar ".*" ".*" ".*"

Step 5: Install & Configure Taiga Backend

Add the new user for Taiga by typing the below commands

sudo adduser osradar
adduser osradar sudo

Now, switch to the newly created user & make a new directory for storing logs.

su - osradar
mkdir -p ~/logs

And fire the below command to clone the taiga backend from git.

sudo git clone https://github.com/taigaio/taiga-back.git

Once downloaded, switch to the downloaded directory & check the latest branch by

cd taiga-back
sudo git checkout stable

Next, activate the mkvirtualenv by

sudo nano ~/.bashrc

Then add the given line to the above file.

source ‘/usr/share/virtualenvwrapper/virtualenvwrapper.sh’

Type the given command to source the file.

source ~/.bashrc

Now, hit the below command to create a Python virtula environment.

mkvirtualenv -p /usr/bin/python3 taiga_venv

Fire the below command in order to resolve the required dependencies.

sudo pip3 install -r requirements.txt

Note: If you got requirements error, simply hit

pip freeze > requirements.txt

Now, migrate & load data by typing the given below commands

python3 manage.py migrate --noinput
python3 manage.py loaddata initial_user
python3 manage.py loaddata initial_project_templates
python3 manage.py compilemessages
python3 manage.py collectstatic --noinput

Edit the ~/taiga-back/settings/local.py file to update application & database settings.

sudo nano ~/taiga-back/settings/local.py
from .common import *
 MEDIA_URL = "http://taiga.osradar.com/media/"
 STATIC_URL = "http://taiga.osradar.com/static/"
 SITES["front"]["scheme"] = "http"
 SITES["front"]["domain"] = "taiga.osradar.com"
 SECRET_KEY = "EJNSJIQHSNNANDBQNSOQOQNDOUQEJqQPOQOASQLSMS"
 DEBUG = False
 PUBLIC_REGISTER_ENABLED = True
 DEFAULT_FROM_EMAIL = "[email protected]"
 SERVER_EMAIL = DEFAULT_FROM_EMAIL
 CELERY_ENABLED = True
 EVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend"
 EVENTS_PUSH_BACKEND_OPTIONS = {"url": "amqp://taiga:yourpassword@localhost:5672/taiga"}

Finally save & exit the file.

Start Taiga backend server with the help of below commands.

workon taiga_venv
python manage.py runserver

To deactivate the virtual environment, type

deactivate

Step 6: Install & Configure Taiga Frontend On Ubuntu 20.04

Switch to the taiga user & clone Taiga frontend from git.

sudo su - osradar
sudo git clone https://github.com/taigaio/taiga-front-dist.git

Once downloaded, check out latest branch by

cd taiga-front-dist
git checkout stable

Copy the config file

cp ~/taiga-front-dist/dist/conf.example.json ~/taiga-front-dist/dist/conf.json

And then edit the conf.json file

sudo nano ~/taiga-front-dist/dist/conf.json

Update the below lines according to your setup.

{
     "api": "http://taiga.osradar.com/api/v1/",
     "eventsUrl": "ws://taiga.osradar.com/events",
     "eventsMaxMissedHeartbeats": 5,
     "eventsHeartbeatIntervalTime": 60000,
     "eventsReconnectTryInterval": 10000,
     "debug": true,
     "debugInfo": false,
     "defaultLanguage": "en",
     "themes": ["taiga"],
     "defaultTheme": "taiga",
     "publicRegisterEnabled": true,
     "feedbackEnabled": true,
     "supportUrl": "https://tree.taiga.io/support",
     "privacyPolicyUrl": null,
     "termsOfServiceUrl": null,
     "GDPRUrl": null,
     "maxUploadFileSize": null,
     "contribPlugins": [],
     "tribeHost": null,
     "importers": [],
     "gravatar": true,
     "rtlLanguages": ["fa"]
 }

Save & exit the file.

Step 7: Install & Configure Taiga Event On Ubuntu 20.04

Fire the below command the get the latest version of taiga event.

cd ~
sudo git clone https://github.com/taigaio/taiga-events.git taiga-events

Then install NPM to the downloaded directory

cd taiga-events
npm install

And copy the config file

cp config.example.json config.json

Then edit the config.json & update the given lines.

{
     "url": "amqp://taiga:yourpassword@localhost:5672/taiga",
     "secret": "EJNSJIQHSNNANDBQNSOQOQNDOUQEJqQPOQOASQLSMS",
     "webSocketServer": {
         "port": 8888
     }
 }

Then save & exit the file. Type exit in order to switch the taiga user.

Step 8: Configure Nginx As Reverse Proxy for Taiga

Install nginx by typing

sudo apt install nginx

Create new virtual host file

sudo nano /etc/nginx/conf.d/taiga.conf

Paste the below content into the file & save it.

server {
     listen 80;
     server_name taiga.osradar.com;

large_client_header_buffers 4 32k;
     client_max_body_size 50M;
     charset utf-8;

access_log /home/taiga/logs/nginx.access.log;
     error_log /home/taiga/logs/nginx.error.log;

###Frontend
     location / {
         root /home/taiga/taiga-front-dist/dist/;
         try_files $uri $uri/ /index.html;
}

###Backend
location /api {
         proxy_set_header Host $http_host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Scheme $scheme;
         proxy_set_header X-Forwarded-Proto $scheme;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_pass http://127.0.0.1:8001/api;
         proxy_redirect off;
}
###Admin access (/admin/)
location /admin {
         proxy_set_header Host $http_host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Scheme $scheme;
         proxy_set_header X-Forwarded-Proto $scheme;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_pass http://127.0.0.1:8001$request_uri;
         proxy_redirect off;
}
###Static files
     location /static {
         alias /home/taiga/taiga-back/static;
     }

###Media files
     location /media {
         alias /home/taiga/taiga-back/media;
     }

###Events
     location /events {
         proxy_pass http://127.0.0.1:8888/events;
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection "upgrade";
         proxy_connect_timeout 7d;
         proxy_send_timeout 7d;
         proxy_read_timeout 7d;
     }
}

Then restart nginx services

sudo systemctl restart nginx

Step 9: Access Taiga WEb UI

Type taiga.osradar.com in your browser to access Taiga web interface

Hit login by entering below credentials.You’ll be redirected to the Taiga dashboard.

User: admin
Pass: 123123

So, this is how you can install Taiga Project Management System On Ubuntu 20.04

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article