Giter VIP home page Giter VIP logo

mazzzoni / memory-cards Goto Github PK

View Code? Open in Web Editor NEW
50.0 2.0 12.0 321 KB

Small game about memory and cards (uh)

Home Page: https://francois-steinel.fr/articles/build-lobby-based-online-multiplayer-browser-games-with-react-and-nodejs

License: MIT License

Dockerfile 1.08% JavaScript 2.88% TypeScript 95.75% CSS 0.29%
game lobby nodejs nestjs nodejs-server reactjs websocket browser multiplayer card-game

memory-cards's Introduction

Memory Cards

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

Installation

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 [email protected]: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

Stack

Yarn Workspaces

Project makes use of Yarn workspaces to manage client and server projects but also to share some code between both.

Next.js / React.js

Client application is built on top of Next.js.

NestJS / NodeJS

Server side is built using NestJS to manage game instances and handle interactions with clients.

Socket.IO

To handle realtime, project uses websockets and manage socket connections with Socket.IO.

Docker

For deployment, I use docker containers (using Alpine NodeJS images for client and server).

Credits

Created by Mazzoni. (email: [email protected] / discord: @mazz#0385)

memory-cards's People

Contributors

benlazzero avatar mazzzoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.