Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Nima-Ra/TeamTwist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published