Skip to content

AndrewL42/chatroom

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README: Chatroom Project - Aidan & Andrew

For our server, we used Node.js. So, to compile our server, you will need node installed:
https://nodejs.org/en/

Direct terminal to the project directory and run the following commands to install dependencies.
npm install
npm install --save express@4.15.2
npm install --save socket.io

Compile the server and run it by using: Ònode index.jsÓ, it will be listening on port 1134.

For our client, we used web browsers. Visit localhost:1134 if youÕre hosting the server on the same computer, or visit [IP Address]:1134 if youÕre trying to connect from a different machine.

Once the webpage loads, enter a username in the textbox specified, and then it will attempt to connect! If you try to enter a username thatÕs already in use, a number will be appended to your username and youÕll connect with that new username. Once you connect, the textbox to enter a username will be removed.
Enter messages in the specified box. Use Ò@[username]Ó to send private messages.
Recipients of the DM message will have their text bolded
When you disconnect the chat will be notified you have left.



About

A chatroom protocol using Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 73.7%
  • JavaScript 26.3%