A dead simple TCP chat built for Node.js with JavaScript.
To run this project, you need to install its dependencies with:
npm run install- To add some colors and text style in the TCP chat, we use colors
- To control the terminal cursor and contents, we use ansi-escapes
To run this project, you can use the start npm script like this:
npm run startIf you're contributing to this project and work with it on your local machine, you can use the start:dev npm script like this:
npm run start:devnodemon will watch your files and auto restart the server when you change something.
To deploy this demo on Clever Cloud:
- You can create your app in the console UI and use a
git push - You can also do everything with the clever-tools CLI:
clever create -t node tcp-chat-demo
clever env set TCP_PORT 4040
PUBLIC_TCP_PORT=$(clever tcp-redirs add --namespace cleverapps | sed 's/.*: //g')
clever env set PUBLIC_TCP_PORT ${PUBLIC_TCP_PORT}
clever deployOnce this is deployed, you can browse your app as HTTP with:
clever openIt will prompt you a nc command to connect to your TCP chat.
