Skip to content

An online game inspired by the popular Codenames board game, implemented using Blazor WebAssembly.

Notifications You must be signed in to change notification settings

JustinWilkinson/Cryptonyms

Repository files navigation

Cryptonyms

An online game inspired by the popular Codenames board game, implemented using Blazor WebAssembly.

Code

Cryptonyms.Client

A client-side Blazor WebAssembly application, which communicates with the server over HTTP and SignalR.

Cryptonyms.Server

A Blazor Server project with API Controllers to serve client requests, and a SignalR Hub to push changes to connected clients.

Cryptonyms.Shared

A project containing abstractions shared between the client and the server.

Cryptonyms.Test

An NUnit Test project containing tests for the solution.

Hosting

  • Cryptonyms is an ASP.NET Core Hosted Blazor WebAssembly application.
  • .NET Core is cross platform, so can be hosted on Linux or Windows.
  • Steps for hosting ASP.NET Core applications can be found here.
  • A working instance is up and running here.

Docker Support

  • For hosting the application in a docker container, either:
  • Build your own container using the below commands
    • To build the docker container run cd into the solution root folder, and run the following command: docker build -t cryptonyms .
    • The container can then be run using the following command docker run -p 8080:80 cryptonyms. Here, port 8080 on the host is mapped to port 80 in the container - this can be amended to taste.
  • Download/Pull an existing image
    • The latest docker images are available from GitHub or DockerHub
    • Alternatively, to pull the package from the command line, simply use docker pull justinwilkinson/cryptonyms.