-
Notifications
You must be signed in to change notification settings - Fork 3
How to set up on your computer locally
Christiana Nardi edited this page May 14, 2025
·
7 revisions
- 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.
Once you have followed the directions in the prerequisites, you can now run the web client!
- Fork the repository on your local computer.
- Open the Development Branch. This is the one of the more recent working versions of the project.
- Go to
script.jsand find where it saysconst peer = new Peer({. Change the options to match the following:

- 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 tohttp://localhost:9000/key=peerjs/peers. - In the second fetch, change the link
https://devbranch-server-dot-videochat-signaling-app.ue.r.appspot.com/key=peerjs/posttohttp://localhost:9000/key=peerjs/post. - Now go to
login.jsin theloginPagefolder. Change all links in the fetch statements (there are two) fromhttps://devbranch-server-dot-videochat-signaling-app.ue.r.appspot.com/key=peerjs/posttohttp://localhost:9000/key=peerjs/post. - Once all of this is done, run the server (learn how to in the repository linked in Prerequisites).
- Run
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-securityfrom any terminal (mac only) OR on windows:"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C://ChromeTemp" - A new chrome window with CORS disabled should open. (This is important bc otherwise you won't be able to login)
- go to
http://localhost:{your port}/loginfrom within that chrome window
Now you can log in and play around with the web client!