Skip to content

NewLandTV/chat-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run

Clone this repository

git clone https://github.com/NewLandTV/chat-server.git
cd chat-server

Install node packages

npm install

Download the ngrok

Download the ngrok

Move the ngrok.exe file to the root of this repository. Then run the command below.

ngrok config add-authtoken $YOUR_AUTHTOKEN

Run the server

To run the command below you will need two other commands.

Server

node .

ngrok

ngrok http localhost:3000

But the client cannot connect to the server because it does not provide the server's URL.

Provide URL

Open the chat.html file and, in url on line 60, enter the forwarding URL displayed at the ngrok prompt.