Skip to content

How to set up Server and Client (For local debugging)

David F edited this page Nov 4, 2025 · 1 revision

This guide will show you how to set up the server and client, starting with the client.

NOTE: Try and debug the client in Chrome/edge/Chromium always!!

The branch we use for this tutorial is beta-authentication for the server: image

The branch we use for the web-client (website) is Room-Creation-+-Leaving: image

Step 1 Start server

  1. Clone the server repository from the beta-authentication branch

  2. In the terminal, type these commands:

    npm run build && npm start

  3. Complete! You should see this:

image

Step 2 Start WebClient

  1. Clone the web client repository and go to the Room-Creation-+-Leaving branch

  2. In a new terminal window (do not close the original), type these commands:

    npm run build && npm start

  3. The server will launch and run, however we are not done! If you try and login now, you will get an error

Step 3

  1. Click the link given to you in the terminal and it will take you to the login page

  2. Attempt 1 login to get an error message (this step is required). You will get an error message.

image
  1. Open the console by right clicking -> inspect
image
  1. Now go to the console on the right of the web page and click the fetch url (to navigate your browser to it)
image
  1. You will get to a page saying the connection is not private, click advanced and then click proceed to 127.0.0.1 (unsafe) and should then arrive at a page that says Cannot GET /key=peerjs/post (This is good)
image image
  1. Attempt to log in again (this time it will work)
image image

Clone this wiki locally