Watchwithfriends is a website that allows people to watch videos together.
This is version 4 of the code and is basically completely rewritten from scratch, because the last codebase was not readable and included some unnecessary features. Also bad UI.
For now, the server does not check the video link, only shares it to clients. For frontend support see ReactPlayer video supported media.
See client docs
See server docs
I have tested this on ubuntu but I think that it should work on other distros as well.
This assumes that Node.js, cargo and make are already installed on the machine:
git clone [email protected]:Aapeli123/watchwithfriends4.git
cd watchwithfriends4
# Build client:
cd client
npm i -g yarn # Install yarn
yarn # Installs dependencies
yarn build # Builds web app to ./dist folder, copy it to the directory that your server serves from.
# Build the server
cd ../server
cargo build --release # Builds the server executable
sudo make install # installs the server as a systemd daemon
I deploy this to a Ubuntu 22.04 LTS DigitalOcean droplet with NGINX as the webserver. The NGINX Configuration file can be found as a gist here.
Pull requests are welcome, first create a fork and implement the feature or fix. Then create the pull request. For large new features please create an issue first for discussion.