- Open the "livelyChat" folder
- install node
curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -
- run
sudo apt-get install nodejs -y
- install the modules
npm install
- open the .env file and change the IP address to be the ip address of your server (and leave port 8080 as it is)
- run
npm run dev
- open the link provided to you on the browsers of your clients and make sure it's on https. Example : https:192.168.1.39:5173
- accept the warning in the browser
- Open the "actix-websockets" folder
- install rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
and follow the instructions - update openssl
sudo apt install pkg-config libssl-dev
- run
cargo build
(this will take some time since there are a lot of packages) - We need to run a temporary https page on the server's port (8080) and accept it from the broswer
- To do this run
openssl s_server -key cert/key.pem -cert cert/cert.pem -accept 8080 -www
- In the browsers of your client devices visit https://yourServerIp:8080 and accept the warning. Example : https://192.168.1.39:8080
- shut down the temp openssl server by hitting Ctrl + c
- run the rust server
cargo run --release
You may now enter a username and test the app
-
Note : You have to allow the temp server from all client devices before testing.
-
Note : The video will not work if the client device has no camera or mic (use a laptop or mobile not a vm)
To test the video, go to the frontend address you opened in step 7 of setting up the client and add /video/username to enter the video chat room. Example : https:192.168.1.39:5173/video/Eesaa