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 (version 16.13.0 at least) and Yarn (version 1.22.17 at least) installed.
- Clone the project
git@github.com:Mazzzoni/memory-cards.git
- Enter project
cd memory-cards/
- Install dependencies
yarn
- Start dev environment for client
yarn start:dev:client
- Start dev environment for server
yarn start:dev:server
Project makes use of Yarn workspaces
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)