Skip to content

bullet-train-pro/bullet_train-conversations

Repository files navigation

Bullet Train Conversations

Installation

This gem requires icu4c to be installed.

If you're in a regulat BulletTrain project you can run this to check for icu4c.

./bin/setup-scripts/check_icu.rb

Then add the following to your Gemfile:

source "https://[email protected]/bullettrain" do
  gem "bullet_train-conversations"
end

And run the following on your shell:

$ bundle install
$ rake bt:link
$ rake bullet_train:conversations:install
$ rake db:migrate
$ rails restart

Then install tailwindcss-stimulus-components

yarn add tailwindcss-stimulus-components

And add this to the bottom of app/javascripts/controllers/index.js

// Slideover is used by the conversations gem for the inbox on small screens
import { Slideover } from "tailwindcss-stimulus-components"
application.register('slideover', Slideover)

Example Usage

For this example, we'll start by creating a project model:

$ rails g super_scaffold Project Team name:text_field
$ rake db:migrate

Once that is in place, we can add a conversation thread to the project like so:

$ rails g super_scaffold:conversations Project Team
$ rake db:migrate

Also, because of the way CableReady reflects on certain relationships, you'll need to restart your Rails server as well:

$ rails restart

Now you should be good to add a new project on your team and then drill down on it to have a conversation!

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests.

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages