Learning the Client-Server model in JavaScript using Socket.IO by building a chat lobby that runs locally.
-
Clone the repository :
git clone https://github.com/nirmit27/Chatting-App.git
-
Open two terminals in your IDE, preferably side by side.
-
Install the required dependencies :
npm install
-
Run the Express server :
npm run dev
in the
server
directory and the React client :npm run dev
in the
client
directory. -
The client will be available at http://localhost:5173 and you can open multiple tabs to add clients as shown in the preview.