Skip to content

cometchat-pro-tutorials/ruby-on-rails-chat

Repository files navigation

Build one-to-one chat in your Ruby on Rails application

Read the full tutorial here:

>> Build one-to-one chat in your Ruby on Rails application

This example app shows how to build one-on-one chats with Comet Chat Pro:

screenshot 2 screenshot 1

Technology

This demo uses:

Running the demo

To run the demo follow these steps:

  1. Head to CometChat Pro and create an account
  2. From the dashboard, create a new app called "Rails chat"
  3. One created, click Explore
  4. Head to the API Keys tab and create an API key with Full access scope
  5. Download the repository here or by running git clone https://github.com/AmberWilkie/ccp-sample-app
  6. Run bundle install
  7. Create a .env file in the root of your folder with your CometChatPro credentials:
COMETCHAT_APP_ID=23n2f2n3p2y3
COMETCHAT_API_KEY=av22g24ll
  1. Run rails s -p4000
  2. Your app should be running on localhost:4000

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

Useful links

Useful examples

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published