Peer-To-Peer jigsaw game built using Angular 18 and WebRTC.
ASP.NET Core API available here.
Live demo can be accessed here: puzz.dov.lt
Run:
npm i
in the project root directory to install the dependencies.
Install Angular CLI
npm install -g @angular/cli
Then run:
ng build
to build the project. It will then be available in the dist/
folder in the root directory.
environments.ts contains the configuration for production.
environments.development.ts contains the configuration for development.
Here should be set both the API and WebSocket URLs.
It is also recommended to set up your own TURN (relay) server for the users that can't connect directly (P2P) because of network restrictions. Suggested: Coturn.
Add the server in peer-manager-service.ts:
iceServers: [
{urls: 'turn:myturnserver.com', username: "user", credential: "pass"}
]
Clone the Puzz API in the Puzz project directory:
git clone https://github.com/dov-vai/PuzzApi.git
Build the docker image:
docker build -t puzz:latest
Start the container:
docker run -d -p 8181:8080 --name puzz-container puzz:latest
Replace port "8181" with your own, name "puzz-container" can also be changed.
Pull requests are always welcome.
GNU General Public License 3.0 or later.
See LICENSE for the full text.