General-purpose WebSocket-based lobby server. Built with Node.js and Nest.js.
Features
- Authorization using JSON Web Tokens.
- Create and join rooms.
- Kick users.
- Send text messages to the room chat.
- API documentation available.
-
Configure the
.env
file. -
Install
Node 16
. -
Install packages.
cd lobby-server
npm install
Run the server for development, debug or production.
cd lobby-server
npm run start:dev
npm run start:debug
npm run start:prod
Build the project, compiling it to JavaScript.
cd lobby-server
npm run build
Once the dist
folder is created start the application.
node dist/main.js