quick-chat-cli v0.1.1
client CLI
A cli project used to link with other user and send messages.
The idea came up through a college job where I would have to implement a way for two users to talk.
The first thing that came to my mind was the socket.io library. I made the server using the express along with websocket, and for the client I chose the gluegun library to make a CLI.
Installation
Using npm:
$ npm install -g quick-chat-cli
or with yarn:
$ yarn global add quick-chat-cli
make sure you have yarn or npm in your path.
Usage
Register
First of all you will need an account. Registration is done using the command:
$ quick-chat-cli register
or for short syntax:
$ quick-chat-cli reg
then you must enter a username and a password, that's all you need to do to be ready to use!
Chatting
There is two paths to follow in here, you can make yourself available for chat by log in, or you can try contact someone whos already logged.
Login
By log in the aplication you will be waiting for someone to ask for connect with you.
$ quick-chat-cli login
when other user try to connect with you, a message will apear asking for acceptance. If the answer is yes, the chat will begin.
Connecting
Using the connect command you will be asked the username of the person that you are tryng to contact. If the user is logged, he will receive a messagem asking if he wants to accept the chat.
$ quick-chat-cli connect
or for short syntax:
$ quick-chat-cli conn
Credits
Matheus Marques – @YourTwitter – YourEmail@example.com
Distributed under the MIT license. See LICENSE
for more information.