The latest deployment on google cloud can be found at http://peerprep.xyz. Make sure to go through step 6 to access full features.
- Docker: Version 24.0.5 or higher is required.
- Docker Compose: Version 2.20.0 or higher is necessary.
- Operating System: If deploying on a Linux server, only Ubuntu version 20.04 or Debian version 10 are acceptable.
- Clone this repository.
- Download the
.env
file from canvas and place it into the root of this repository. (If you do not have access to the.env
file, you can create a new file called.env
with theENV_TYPE="prod"
, yourPOSTGRES_PASSWORD
and yourJWT_RS256_PRIVATE_KEY
). - Start the application by running the
start_containers.sh
script.
bash start_containers.sh
(Note: You might need to use sudo according to the permissions on your machine)
- If you are deploying on a remote server, make sure to open port 80.
- Access the website on your browser at
http://<your ip address>:80
(80 is the default port for a website). - (Note: This step is not required if you're deploying the application on your localhost.) Since we're using http instead of https, you'll need to edit the permissions of the site to access all the features (specifically, for video chatting).
-
For Chrome: Type
<your browser>://flags/#unsafely-treat-insecure-origin-as-secure
into your browser url (replace<your browser>
withchrome
for google chrome). This will bring you to the relevant settings. Add the url of your deployment (http://<your ip address>:80
orhttp://peerprep.xyz
) in the text box and enable this setting. -
For Safari: Click Safari > Preferences > Advanced and check
Show Develop menu in menu bar
. SelectDevelop
in the menu bar and selectWebRTC
. CheckAllow Media Capture on Insecure Sites
To view/run the assignment codes, checkout to the tagged commits:
git checkout tags/Assignment-X # where X = 1, 2, 3, 4, 5
And follow the setup instructions found in the README.md
of the tagged commit.
For convenience, here are the links to the tagged commits on GitHub: