Skip to content

Latest commit

 

History

History

rails-talkjs

Rails and TalkJS example

This is an example project for TalkJS's tutorial on how to build a Rails chat app with TalkJS. This example demonstrates how to integrate TalkJS with a Ruby application that uses the Rails framework.

Prerequisites

To run this tutorial, you will need:

How to run the tutorial

  1. Clone or download this project.

  2. Replace <APP_ID> in rails-talkjs/app/javascript/conversation.js with the value found in the Settings tab of your TalkJS dashboard.

  3. Install Rails:

    gem install rails
  4. Install other project dependencies:

    bundle install
  5. Run rails db:migrate to create the database table for users.

  6. Run rails db:seed to seed the database with test data (this will first delete any test data that's already in the database).

  7. Run rails server to start the server.

  8. Go to http://127.0.0.1:3000/chat to try the example out.