open a terminal and type
npm install
this gives us
- express(node's framework)
- uuid is used to generate unique id's that will denote our room names
- EJS is a simple templating language that lets you generate HTML markup with plain JavaScript
- Socket.IO is a library that enables real-time, bidirectional and event-based communication between the browser and the server basically it helps creating a backend socket it will help us in making other people join the rooms
- so that we dont have to restart out server with each change
now to start the server we have to use npm run dev
if you want to check how this was build you can read the notes here