Skip to content
/ Puzz Public

Multiplayer jigsaw game built using Angular, ASP.NET Core & WebRTC

License

Notifications You must be signed in to change notification settings

dov-vai/Puzz

Repository files navigation

Puzz

Peer-To-Peer jigsaw game built using Angular 18 and WebRTC.

ASP.NET Core API available here.

Live demo

Live demo can be accessed here: puzz.dov.lt

Building

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.

Configuring

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"}
]

Docker

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.

Contributing

Pull requests are always welcome.

LICENSE

GNU General Public License 3.0 or later.

See LICENSE for the full text.

About

Multiplayer jigsaw game built using Angular, ASP.NET Core & WebRTC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages