This project was created to explore TCP/IP Sockets. It allows users to communicate through the terminal with others on the same local network.
Prerequisite: Node.js version 18 or higher is required.
- Clone the project and navigate into its directory.
- Execute
npm install
to install dependencies.
Important Notes:
- Multiple terminal windows are required: one for the server and additional ones for each chat participant.
- Ensure your system has
netcat
installed by running thenc
command in the terminal. Alternatively,telnet
can be used ifnetcat
is not available.
- Open a new terminal window, navigate to the project directory, and execute
npm run dev
to start the local server on port 3000. - In another terminal window, execute
nc localhost 3000
to join the chat. Repeat this step for each participant. - You are now ready to chat!
- Implement tests
- In the future, consider adding a database to store chat history
This project is licensed under the MIT License.