Quick IRC chat done in nodeJS during school's practical work.
I did this during a school's practical work of 4h (I actually never used node js before), so it's not working as expected for now. What it can do for now:
- Connect to an host (server.js) on the same network
- chat with multiple users on the host
I'll update this project during my free time. Goal is to finish this app correctly (better UI, skip use of "s" command from Vorpal, etc)
You will need Node JS before setting up! then run:
- npm install vorpal
- npm install ip
Fist you need to start the host program type in your terminal :
node /path/server.js
if you want more option on server start up, just add on command line:
node /path/server.js Chat_room_name port
please note that room's name is just informative.
same command line:
node /path/client.js username
By default you will be connected on localhost (127.0.0.1) port 8080, if your chat server is hosted elsewere:
node /path/client.js username host
At last, if you have multiple used ports on your server, you can specify the port:
node /path/client.js username host port
and it's done!
don't forget to quit when you're done
quit
Or
exit
That's it!
For more information about Vorpal commands
help
This application use the following libraries:
- NodeJS
- net (included in Node)
- Vorpal
- ip