https://github.com/newlandtv/chat-server
A simple Node.js chat server.
https://github.com/newlandtv/chat-server
chat js node server socket-io
Last synced: about 1 month ago
JSON representation
A simple Node.js chat server.
- Host: GitHub
- URL: https://github.com/newlandtv/chat-server
- Owner: NewLandTV
- License: mit
- Created: 2024-07-28T08:34:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T08:57:21.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T13:35:12.532Z (over 1 year ago)
- Topics: chat, js, node, server, socket-io
- Language: HTML
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# How to run
## Clone this repository
```sh
git clone https://github.com/NewLandTV/chat-server.git
cd chat-server
```
## Install node packages
```sh
npm install
```
## Download the ngrok
[Download the ngrok](https://ngrok.com/download)
Move the ngrok.exe file to the root of this repository. Then run the command below.
```sh
ngrok config add-authtoken $YOUR_AUTHTOKEN
```
## Run the server
**To run the command below you will need two other commands.**
### Server
```sh
node .
```
### ngrok
```sh
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.