Nima-Ra / TeamTwist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick Installation Guide

  1. Installing Git

sudo apt install git

  1. Cloning the repository

git clone https://github.com/nima-ra/TeamTwist.git

  1. CD to the directory

cd TeamTwist

  1. Installing dependencies

npm install

  1. Installing pm2

npm install -g pm2

  1. Marking main.js executable:

chmod +x ./main.js

  1. Getting into editor mode for editing nginx defaults

nano /etc/nginx/sites-available/default

  1. Adding this code to the server block
location / {

                proxy_pass http://localhost:8545;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header Host $host;
                proxy_cache_bypass $http_upgrade;
        }
  1. Restarting Nginx

sudo systemctl restart nginx

  1. Launching code

pm2 start main.js

About


Languages

Language:CSS 47.6%Language:JavaScript 37.0%Language:HTML 15.2%Language:Shell 0.1%