How to install & configure The Lounge

After getting tired of KiwiIRC and not being in full control I started to search for the ideal
IRC client. I was not sure if I wanted to useZNC as my IRC bouncer which I have done before without any big issues and then connect it to weechat. I was thinking about it for a couple of days and decided to toss that idea away in favor for an IRC web client, which would be easier to connect to when I’m on the move and also from my mobile for that sake.
So I decided to use Shout. Yup, you hear me Shout.
That lasted no more than 4 minutes until I saw The Lounge which is a fork off Shout. I will not go into details about what the big differences are but if you are curious you can take a quick look here.

Dependencies

The lounge requires Node.js v4 or a more recent version
Choose your distro:

Ubuntu

RHEL/Centos 7

In order to install nodejs and nmp we need to enable the epel repository

furthermore, we need to add a new user for The Louge, due to security
If you are in doubt if you have sudo installed then please check, just to be sure.

Install The Lounge

After the dependencies are satisfied it pretty straight forward to install the lounge.

if you are on a Centos server please login to the nonroot user we created

and then start

You can stop the server at any time with hitting ctrl+c
And basically, that is all you need to have a functional self-hosted IRC client.

Configure The Lounge

I do recommend to modify the configuration anyway to make it more secure!
You can do that with

You should see the configuration file now. I would recommend to change a few changes in the configuration.
Find theserver mode block and set it to false in order to activate users, and make the server private.

Search for https and set it to true in order to enable https.
In this guide, I’m just going to show you how to enable it and make it work with a self-signed certificate but you could always obtain a signed one by Let’s Encrypt at no costs.
Please edit the string for key="" and certificate="" so it looks like the code below.

Save and exit the configuration file.
We need our certificate now, so let’s go ahead and generate one. But first, we need to create the folder we just specified in the configuration file.

and then generate the certificate and the key with

The only thing we need now is to create a user for the lounge in order to be able to start the application without any errors. So go ahead and do that

You will be prompted for a password afterward.
Now it is time to start The lounge

I like to start the application with screen so I safely can close the terminal without worrying it will stop the application.
You should be able to open your browser and go to http://server-ip:9000 or https://server-ip:9000 and you should see something similar to this, where you should enter the name and password for the user you just created. I don’t think there is much to say than congrats with you new awesome and self-hosted IRC client!.