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.
To run this tutorial, you will need:
-
Clone or download this project.
-
Replace
<APP_ID>
inrails-talkjs/app/javascript/conversation.js
with the value found in the Settings tab of your TalkJS dashboard. -
Install Rails:
gem install rails
-
Install other project dependencies:
bundle install
-
Run
rails db:migrate
to create the database table for users. -
Run
rails db:seed
to seed the database with test data (this will first delete any test data that's already in the database). -
Run
rails server
to start the server. -
Go to
http://127.0.0.1:3000/chat
to try the example out.