Skip to content

A simple game using sockets in node.js. It is a simple server which enables to join users a room and communicate with each other.

Notifications You must be signed in to change notification settings

UxHarshit/GameServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SocketGame

A simple game using sockets in node.js. It is a simple server which enables to join users a room and communicate with each other.
Just now this is a simple chat room, but I am planning to add more features to it.
Currently this is in WIP.It is a server only, so you will be communicating through the api. I will be adding a client soon.

Images

  • User 1 joins the room and creates a room
  • User 1 joins the room and creates a room
  • User 2 joins the room
  • User 2 joins the room

  • Above images show chat between two users with system messages live events updates like user joined, user left etc.

How to run

  1. Clone the repository
  2. Run npm install
  3. Run npm run dev
  4. Open your browser and go to localhost:3000

How to use

(Will be updated soon) or you can check the code in the src folder. You will be needing api tools like postman to communicate with the server.

Features

  • Game room
  • Chat filtering
  • System messages
  • Ban users / Kick users
  • User joined / User left
  • In chat commands
  • Game
  • User authentication

Contributing

Feel free to contribute to this project. You can fork the project and make a pull request. I will be happy to review it.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Author