You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The branch we use for the web-client (website) is Room-Creation-+-Leaving:
Step 1 Start server
Clone the server repository from the beta-authentication branch
In the terminal, type these commands:
npm run build && npm start
Complete! You should see this:
Step 2 Start WebClient
Clone the web client repository and go to the Room-Creation-+-Leaving branch
In a new terminal window (do not close the original), type these commands:
npm run build && npm start
The server will launch and run, however we are not done! If you try and login now, you will get an error
Step 3
Click the link given to you in the terminal and it will take you to the login page
Attempt 1 login to get an error message (this step is required). You will get an error message.
Open the console by right clicking -> inspect
Now go to the console on the right of the web page and click the fetch url (to navigate your browser to it)
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)