A simple chat website with a chat server created using NodeJS.
-
First you must have NodeJS installed.
-
Open the command line and type
npm install. This will install the dependencies for the server. -
Then type
node server.jsto run the chat server.Listening on port: 1337should appear to indicate that the server is running. -
To configure the server IP address for production/local use, open the script file
app/script.jsand simply replace127.0.0.1onvar conn = new WebSocket('ws://127.0.0.1:1337');with the IP address that the server is running on. -
Simply open
app/index.htmland you're good to go.
LICENSE: MIT