Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.71 KB

UserGuide.md

File metadata and controls

41 lines (26 loc) · 1.71 KB

How to use "Chat Room Service"

Pre-Installation

Make sure you have the following technologies installed on your computer:

Install dependencies

Open the terminal (command line), and cd to the projects directory, then type:

  • npm install

Once it is done installing the dependencies, you can now run the project by typing:

  • node app

You should see a message saying

Listening at port 5000

Connection has been made, now make fireworks...

If not, then you probably have an error, contact me.

You can now head to your browser, type http://localhost:5000 and hit enter, you should see the home page of the project.

Home page

Use case

As a user, you now have two options after you type your nickname:

  • Create a new room, in which the server will generate a unique code for your new room, and redirect you to it.
  • Join an already existing room using a room code. Note that trying to enter non-existing code will be rejected by the server.

Note that the nickname you pick has to be unique per room, the server will check for that before proceeding.

Now after you have been directed to a room, you can simply start chatting, knowing that all your messages are encrypted from end-to-end. Enjoy!

Chat page