Simple game about memory and cards.
Main goal of the project is to show how to build a simple lobby based online multiplayer game. Logic can apply for app lobby based too.
You can find released game here:
https://memory-cards.mazz.lol/
Here's a complete article about process and implementation:
https://francois-steinel.fr/articles/build-lobby-based-online-multiplayer-browser-games-with-react-and-nodejs
To install project locally, make sure to have NodeJS installed (version 22 to 24 for the client: Next.js 12 does not build on Node 25 and later; the server runs on Node 26), with corepack enabled (npm install -g corepack && corepack enable pnpm): it runs the pnpm version pinned in package.json.
- Clone the project
git@github.com:Mazzzoni/memory-cards.git - Enter project
cd memory-cards/ - Install dependencies
pnpm install - Start dev environment for client
pnpm start:dev:client - Start dev environment for server
pnpm start:dev:server
Project makes use of a pnpm workspace (pnpm-workspace.yaml) to manage client and server projects but also to share some code between both.
Client application is built on top of Next.js.
Server side is built using NestJS to manage game instances and handle interactions with clients.
To handle realtime, project uses websockets and manage socket connections with Socket.IO.
For deployment, I use docker containers (using Alpine NodeJS images for client and server).
Created by Mazzoni. (email: hello@mazz.lol / discord: @mazz#0385)