Skip to content

cometchat-pro-tutorials/twilio-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migration Guide: from Twilio to CometChat

Read the full tutorial here: >> Migration Guide: from Twilio to CometChat

Technology

This demo uses:

  • Node.js
  • Express.js
  • Body-parser
  • Cors
  • Dotenv
  • Request

Running the demo

To run the demo follow these steps:

  1. Head to CometChat Pro and create an account
  2. From the dashboard, add a new app called "twilio-migration"
  3. Select this newly added app from the list.
  4. From the Quick Start copy the APP_ID, APP_REGION and AUTH_KEY. These will be used later.
  5. Also copy the REST_API_KEY from the API & Auth Key tab.
  6. Navigate to the Users tab, and delete all the default users and groups leaving it clean (very important).
  7. Download the repository here or by running git clone https://github.com/hieptl/twilio-migration.git and open it in a code editor.
  8. Create a file called .envs in the root folder of your project.
  9. Import and inject your secret keys in the .env file containing your CometChat in this manner.
COMETCHAT_APP_ID=xxx - xxx - xxx - xxx - xxx - xxx - xxx - xxx
COMETCHAT_APP_REAGION=xxx - xxx - xxx - xxx - xxx - xxx - xxx - xxx
COMETCHAT_AUTH_KEY=xxx - xxx - xxx - xxx - xxx - xxx - xxx - xxx
COMETCHAT_API_KEY=xxx - xxx - xxx - xxx - xxx - xxx - xxx - xxx
  1. Install all the dependencies of the applicatoin by running
npm install
  1. Run the project with the following statement
node index.js 
  1. Make sure to include the .env file in your gitIgnore file from being exposed online.

Questions about running the demo? Open an issue. We're here to help ✌️

Useful links

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published