Skip to content

πŸ’¬ Commandline-chat is a Javascript project created during the JS Expert event taught by Erick Wendel. πŸŒ‘

Notifications You must be signed in to change notification settings

rgiovani/commandline-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Commandline-chat v1.0

Commandline-chat is a Javascript project created during the JS Expert event taught by Erick Wendel.

Getting Started


1. Run the server in server/:

npm run dev
# or
yarn dev

2. In the client/ run:

npm link
# This will add the global command (cmdchat) to your pc.

# To remove, run:
npm unlink -g @rgiovani/commandline-chat-client


3. Now, at any command prompt, you can type:



  cmdchat --username namehere --room roomhere

  cmdchat --username namehere --room roomhere --hostUri https://myserver.com/
  • --username: name that appears to everyone in the chat.
  • --room: room name to enter, if the room name does not exist, a new one will be created with the name you enter.
  • --hostUri: http://localhost:9898/ by default, or you can place the link where the server was deployed.

1. When executing the command, a chat will appear and you will be able to chat with anyone who enters.



2. 'Messenger' shows messages in real time. 'Users in the room' shows the users present in the same room. 'Activity log' shows when someone enters and leaves the room.



3. As here, an example of how the activity log works:



4. While the server is running, it will show all the activities that happen in real time, it will log everything.


and that's it, have fun! keep talking and give me your star! @rgiovani

About

πŸ’¬ Commandline-chat is a Javascript project created during the JS Expert event taught by Erick Wendel. πŸŒ‘

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published