Coder Social home page Coder Social logo

react-node.js-socket.io-game's Introduction

Online Rock-Paper-Scissors-Spock-Lizard game

This work was completely done by me to understand React, Node.js, socket.io and other technologies.

Features

User first see a waiting screen (while waiting for a second player). There is a link, which needs to be sent to the second player. The second player can open the invitation link in browser and see the game screen. The first player is sent to the game screen as well. Several pairs of players can to play at the same time.

Stack:

  • react JS for UI
  • node.js for the server side
  • socket.io for communication between the client and the server
  • sound manager for the sound effects

First use:

npm install

Use this command in root directory to run project:

npm run dev

or

npm run client
npm run server

Описание на русском

Эта работа была полностью сделана мной, чтобы изучить React, Node.js, socket.io и другие технологии.

Особенности

Пользователь, при заходе на сайт, видит экран ожидания других игроков. Здесь есть ссылка, которую надо отправить второму игроку. Втогой игрок открывает ссылку, и видит экран игры. В этот момент первого игрока тоже перенаправляют на экран игры. Несколько пар игроков могут играть в одно и тоже время.

Stack:

  • react JS для UI
  • node.js для серверной стороны
  • socket.io для связи между клиентом и сервером
  • sound manager для звуковых эффектов

Сначала используйте команду:

npm install

Используйте эту команду в корневой папке для запуска проекта:

npm run dev

или

npm run client
npm run server

react-node.js-socket.io-game's People

Contributors

caandspb 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.