Simple, socket.io based chat with a terminal client
You can download prebuilt binaries from the releases page.
If you want to run this from the source, follow these instructions:
git clonethiscd gsw2-chat/servernpm installnpm start -u USERNAME -p PASSWORD -o PORT
git clonethiscd gsw2-chat/appnpm installnpm start -n YOUR_NICKNAME -s SERVER_ADDRESS -c SERVER_USERNAME:SERVER_PASSWORD
Both the client and the server support options that can be passed either through environment variables or command line arguments. Here they ar:
-
- Description: Username the clients will have to inform in order to connect to the server
- Variable:
GS2W_USER - Argument:
--usernameor-u
-
- Description: Password the clients will have to inform in order to connect to the server
- Variable:
GS2W_PASS - Argument:
--passwordor-p
-
- Description: Port the server will listen on
- Variable:
GS2W_PORT - Argument:
--portor-o
-
- Description: Username and password required by the server to connect. (The expected format is
username:passowrd) - Variable:
GS2W_CREDENTIALS - Argument:
--credentialsor-c
- Description: Username and password required by the server to connect. (The expected format is
-
- Description: Nickname you want to use to identify you on the server
- Variable:
GS2W_NICKNAME - Argument:
--nicknameor-n
-
- Description: Server URL (and port)
- Variable:
GS2W_SERVER - Argument:
--serveror-s
In order to build this, you'll need pnpm, so go get it first.
After you have pnpm, do this:
git clonethiscd gsw2-chat/apporcd gsw2-chat/server- npm run build
You'll find the binaries on the dist folder.
By default, the build script will create binaries for windows, MacOS an Linux. If you don't want them all, you can use the OS-specific build commands build:windows, build:macos or build:linux
Enjoy! :D