Skip to content

How to set up on your computer locally

Christiana Nardi edited this page May 14, 2025 · 7 revisions

Prerequisites

  • In order to run locally, it is crucial that you setup the server. Failure to do so will result in the client not working. Please follow the steps outlined in the server wiki before moving on.
  • In VS Code, please make sure you have the "Live Server" extension installed.

Getting it Running

Once you have followed the directions in the prerequisites, you can now run the web client!

  1. Fork the repository on your local computer.
  2. Open the Development Branch. This is the one of the more recent working versions of the project.
  3. Go to script.js and find where it says const peer = new Peer({. Change the options to match the following:

image

  1. Next, change the fetch statements. For the first one that has the link https://devbranch-server-dot-videochat-signaling-app.ue.r.appspot.com/key=peerjs/peers, change it to http://localhost:9000/key=peerjs/peers.
  2. In the second fetch, change the link https://devbranch-server-dot-videochat-signaling-app.ue.r.appspot.com/key=peerjs/post to http://localhost:9000/key=peerjs/post.
  3. Now go to login.js in the loginPage folder. Change all links in the fetch statements (there are two) from https://devbranch-server-dot-videochat-signaling-app.ue.r.appspot.com/key=peerjs/post to http://localhost:9000/key=peerjs/post.
  4. Once all of this is done, run the server (learn how to in the repository linked in Prerequisites).
  5. Run open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security from any terminal (mac only) OR on windows: "C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C://ChromeTemp"
  6. A new chrome window with CORS disabled should open. (This is important bc otherwise you won't be able to login)
  7. go to http://localhost:{your port}/login from within that chrome window

Now you can log in and play around with the web client!

Clone this wiki locally