The backend part of hangman-game
A backed part of my two player version of the classic word guessing game hangman.
This is a websockets server, meant for playing in real time. It takes care of game logic events, as well as, allowing entrance and joining rooms.
- Typescript v4.2.4
- Socket.io v4.1.1
To run this project locally, clone it and install using npm:
$cd ../hangman-back
$npm install
then, you will need to create a nodemon.json file, containing "env" object with following properties:
- "URL": A frontend URL, for CORS
Finally, run it using npm:
$npm run startdev