Awesome
Build one-on-one chat in your Vue app
This is the demo app that we build in the Build one-on-one chat in your Vue app tutorial.
Technology
This demo uses:
Running the demo
- Download this repository
- Run
npm install
- Create
.env.local
in your root directory - Add the following into it:
VUE_APP_COMETCHAT_APP_ID = your-app-id
VUE_APP_COMETCHAT_API_KEY = your-api-key
- To get
your-app-id
andyour-api-key
, go to your CometChat dashboard - Create a new app and name it whatever you want
- Once it's created, you can see your app id below the app's name
- Replace
your-app-id
with it - Click on Explore
- Go to API Keys tab and use the
authOnly
key asyour-api-key
in your.env.local
- Run the app using
npm run serve
- View the app on http://localhost:8080