Posted on

Gyaro Documentation

Sharing is caring!

Gyaro Installation Guide  for Video chatting website using WebRTC running on Nodejs server

  1. Install Nodejs on Server.
  2. You have to install nodejs v8.7.0 with samboachat

Ex:  > nvm install 8.7.0


type to install nodejs version 8.7.0: > curl -o- | bash

then type

source ~/.bashrc

then type

nvm install v8.7.0 source or nvm install 8.7.0

then type

nvm use v8.7.0

then type

curl > /etc/yum.repos.d/slc6-scl.repo

rpm –import

yum install -y devtoolset-3

scl enable devtoolset-3 bash

  1. Extract project files to certain directory.
  2. Open command prompt (use TERMINAL or SHELL for Linux).
  3. Move to project directory on command prompt.


find samboachat root folder where “admin” and “client” directory is located.

 MAKE SURE TO UPDATE cert.pem in client directory with your SSL certificate of certificate

MAKE SURE TO UPDATE key.pen in client directory with your SSL certificate of certificate

Each directory holds project source code for admin and client site.

  1. To make project run, you need to install nodejs packages via npm.

For example, you can install nodejs packages for admin project like this.


>cd admin

>npm install

>npm install nodemon

>npm install forever -g


And for client project,


>cd client

>npm install

>npm install nodemon

>npm install forever -g


Then you can notice that “node_modules” folder is created.

  1. And next, you need to install database.
  2. This site uses MySql DB.

You can find sql file for database installation in project folder.

To install, you need to add a new database named as “admin_samboachat” to MySQL server and execute sql file on server.

And add information about MySQL server to project.

To add,

For Admin:

open “project_directory/admin/app/config/database.js”

change information about ‘host’, ‘user’ and ‘password’

                                For client:

                                                Open “project_directory/client/src/appconfig.js”

                                                Change information about ‘host’, ‘user’ and ‘password’

  1. After installing node packages via “>npm install”, you can run project by run command “node server.js”.


To run admin, just move to “admin” directory  and type “>node server.js” on command prompt window.

  1. The url for admin and client is important.

If your server IP address or domain name is “x.x.x.x” or “xxxx.xxxx”, then

                Client front end url is https://x.x.x.x:15001

                Admin Panel url is https://x.x.x.x:15002

                (Be careful about “http” and “https”. Admin is “http” and client is “https”)

–          You need to set database information on your website control panel.

Here, for example, “chatten_chat” is db name for your site.

You need to add user to access it by clicking [Add new user] button.

Get added user information.

And put it on admin and client database configuration file mentioned above.

And next is port issue.

The app uses 15001 for client and 15002 for admin default. I used opposite ports for admin and client

To access website without indicating port number, you need to change port number to 80.

You can change it in “projectrootfolder/admin/app/config/settings.js” for admin and “projectrootfolder/client /src/appconfig.js”.

// admin

// client

When you have database message on client side,

This means some error occurred while accessing database.

In this case, you need to confirm your database information on MySQL server and add it to project config.

This is also mentioned above.

To run admin and client both and, you need to use command “nohup” on shell.

For example, to run admin and keep running even you close shell, you have to type “admin directory> nohup node server.js &”

And press return key once.

And to run client and keep running, move to client directory and type “client directory> nohup node server.js &”

in /client folder 
in /admin folder 

just run the node server by typing command in ssh 
# forever start server.js & 

then in end after running forever start server.js & command press CNTRL + D on your keyboard

Make sure to enable port 15001 and 15002 in your TCP connections or in firewall.

Leave a Reply

Your email address will not be published. Required fields are marked *