Coder Social home page Coder Social logo

vue-chat-tutorial's Introduction

Build a Vue chat app

Read the full tutorial here:

Click here to view the link

This application detailed the step by step guide on how to build a modern group chat application using Vue.js and CometChat.

Take a look at the screenshot below:

Technology

This demo uses:

Running the demo

To run the demo follow these steps:

  1. Head to the CometChat dashboard (you'll need to create a free account if you haven't already)
  2. From the dashboard, create a new app called "vue-group-chat"
  3. Once created, click the button Explore
  4. Click API Keys on the left-hand-side and note the automatically-generated Full access API Key and the application ID as well
  5. Go to the Groups tab and note the GUID of the group automatically created by CometChat
  6. Download the repository here or by running git clone https://github.com/yemiwebby/vue-group-chat-app.git
  7. Run npm install to install all the project's dependencies
  8. Create a .env file with the root folder of the project and paste the following content in it:
VUE_APP_COMMETCHAT_API_KEY=YOUR_API_KEY	
VUE_APP_COMMETCHAT_APP_ID=YOUR_APP_ID
VUE_APP_COMMETCHAT_GUID=YOUR_GROUP_GUID

Replace YOUR_API_KEY, YOUR_APP_ID and YOUR_GROUP_GUID with your API KEY, APP ID and GUID as obtained from your CometChat dashboard.

  1. Run npm run serve to start the application and navigate to http://localhost:8080 to view the app

  1. Open the application in two separate windows and log in with any two of the test users: superhero1, superhero2, or superhero3

  1. Once you are able to log in from both window, type a message and hit Enter on your keyboard to start a chat

Useful links

vue-chat-tutorial's People

Contributors

yemiwebby avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gktaj ewgene

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.