Hack.Chat an Open Source Code for you to Make your own Chat Server. This can be useful for others as well as yourself Because these days, People love to Hangout and Looks for places where people are communicating with each other and making new Friends.
Anyway, that’s your choice you can do whatever you want. I’m just sharing how to Install and set up Chat on your Machine or Server.
What do you need?
- Server ( VPS/Dedicated Server *root access ) – No Shared Hosting Please :p
- Nodejs Installed (Install Latest Nodejs & Npm)
What Problems will you get while installing hack.chat?
You always have some problems while installing Hack.Chat on your Server if you face any Contact the Support team on GitHub or Comment Below!
How to Install Hack.Chat?
Let’s begin we can install hack.chat on servers and localhost. but for this tutorial, we’re going to install that on our amazon AWS server.
First, open up your Terminal or SSH Console!
git clone https://github.com/AndrewBelt/hack.chat.git
This Command will bring and Download all the files of Hack.Chat Source.
After that Move to Downloaded Directory where you Git Clone the Source.
After Moving to another Installation Folder then type this command.
I already have installed that, So will not going to do that again!
Copy using cp command config-sample.json to config.json
After making a copy file type:
sudo nano config.json
sudo is important remember!
There you have a config file like this. If you’re installing on LocalHost then Enter your Host: to your Local IPV4 by typing: ipconfig/ifconfig on your terminal or windows shell.
Leave that Port Default.
After changing your Server Host and admin Details now Start a Server using the following commands.
npm start or node server.js
And your Server will be started!
After that Let’s start a Client!
Now move to another Directory called client:
After that, you have to install the Client Settings and type the following command:
sudo npm install -g less jade http-server
When you’re done with installations you have to go with this command:
After Making the Client you have to Start the Client as well as you did for starting the server.
If you wanna Change the layout of or front page you can find it on client.js do nano to edit or any other editor.
If you wanna check if the server is working file open up your browser and look up here! go to http://127.0.0.1:8080.
If you’re having trouble installing this on your Public IP Address or are Unable to port forward we’ll help you by just commenting below what problem you’re having!