Node.js and Chatkit JavaScript tutorial: Build a command-line chat app



Learn to build a Node.js command-line chat application with Chatkit in this JavaScript tutorial.

🔗 https://pusher.com/chatkit

 💻 Code on GitHub: https://github.com/pusher/chatkit-command-line-chat

⭐️🔗Links mentioned in video🔗⭐️
-server.js file: https://gist.github.com/bookercodes/290c7a8e8bcf4769caf9a2aaeea87944
-Wes Bos talk on Async/Await: https://youtu.be/DwQJ_NPQWWo
-Destructuring: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

🔗 Alex Booker’s Code Cast YouTube channel: https://www.youtube.com/channel/UCcQsDUZiK1GWDcP7BpVO_kw

🐦 Alex on Twitter: https://twitter.com/bookercodes

Learn to code for free and get a developer job: https://www.freecodecamp.com

Read hundreds of articles on programming: https://medium.freecodecamp.com

And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp

source

This Post Has 15 Comments

  1. PSG

    When is the second part coming ????

  2. Nuno Lopes

    Out of curiosity, can you share which application do you use to see all Chrome tabs and the other open programs when you tab?
    Looking forward to next episode.

  3. Rene Snijders

    Nice tutorial, but why not use WebSockets ??? then you can simplify the usage to a webbrowser and less code 🙂

  4. Rogier Visser

    Cool tutorial!! But i am getting errors and dont know how to solve them.
    I understand i need to upgrade something but cannot understand what or how
    The errors i get are:

    ✔ Authenticated as roger
    ⠇ Connecting to Pusher.. Logger.ERROR: error establishing user subscription:
    This API version has been removed after a period of deprecation. Please upgrade your client libraries. More information can be found at https://docs.pusher.com/errors/services/chatkit/bad_request/api_version_removed. Error object: e {
    statusCode: 400,
    headers:
    { 'access-control-expose-headers': 'Access-Control-Max-Age',
    'access-control-max-age': '86400',
    'content-type': 'application/json',
    date: 'Sat, 27 Apr 2019 21:53:56 GMT',
    server: 'envoy',
    'x-envoy-upstream-service-time': '0',
    'Request-Method': 'SUBSCRIBE' },
    info:
    { error: 'services/chatkit/bad_request/api_version_removed',
    error_description: 'This API version has been removed after a period of deprecation. Please upgrade your client libraries',
    error_uri: 'https://docs.pusher.com/errors/services/chatkit/bad_request/api_version_removed' } }
    ✖ Connecting to Pusher..
    e {
    statusCode: 400,
    headers:
    { 'access-control-expose-headers': 'Access-Control-Max-Age',
    'access-control-max-age': '86400',
    'content-type': 'application/json',
    date: 'Sat, 27 Apr 2019 21:53:56 GMT',
    server: 'envoy',
    'x-envoy-upstream-service-time': '0',
    'Request-Method': 'SUBSCRIBE' },
    info:
    { error: 'services/chatkit/bad_request/api_version_removed',
    error_description: 'This API version has been removed after a period of deprecation. Please upgrade your client libraries',
    error_uri: 'https://docs.pusher.com/errors/services/chatkit/bad_request/api_version_removed' } }

  5. Sunny Parmar

    The chatkit api has been retired..!! it's on offical website

  6. Business Opportunity in Ruvol

    I have invented a Board Game [still unpublished and not yet out in the market] that I believe is guaranteed to be as challenging and exciting as CHESS. I called it “RUVOL.”

    It is my hope that one day Ruvol may surpass chess as the “Number One Board Game in the World.”

    The weakness of chess is it always starts in fixed positions that the opening moves become “memorizable.” In fact, not a few have so mastered the moves that they can play against their opponents “blindfolded.” It is for this very reason that the great Bobby Fischer introduced his so-called “Fischer Random Chess,” where the starting position of the pieces is “randomized” to make the memorization of openings impracticable. Fortunately, it is also for this reason that I invented Ruvol where “every game” has been calculated to be a challenging one to play.

    HOW IS RUVOL PLAYED and HOW YOU CAN MONETIZE IT?

    I detailed everything in my YouTube video. Here is the link: https://www.youtube.com/watch?v=jcqth0m3-R0

    BIG MONEY POTENTIAL IN RUVOL!

    It is worthwhile to note that the people who play chess will be the same people who will play Ruvol. In my Google search, I learned there are around 800 million chess players in the world. Even just a small percentage of these 800 million is good enough to earn big money from Ruvol either as an ONLINE GAME BUSINESS or as a PHYSICAL PRODUCT DISTRIBUTOR.

    You may contact me at: rodolfovitangcol@gmail.com.

    Thanks and God bless!

    RODOLFO MARTIN VITANGCOL

    The Ruvol Inventor

Leave a Reply