Coder Social home page Coder Social logo

xmas7 / cable_ready Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stimulusreflex/cable_ready

1.0 0.0 0.0 10.02 MB

Use simple commands on the server to control client browsers in real-time

Home Page: https://cableready.stimulusreflex.com

License: MIT License

Shell 0.18% JavaScript 43.15% Ruby 52.97% CSS 0.43% HTML 3.27%

cable_ready's Introduction

Welcome to CableReady ๐Ÿ‘‹

downloads License: MIT Lines of Code Documentation
semantic-release Ruby Code Style JavaScript Code Style
Code Quality Prettier-Standard StandardRB


CableReady helps you create great real-time user experiences by making it simple to trigger client-side DOM changes from server-side Ruby. It establishes a standard for interacting with the client via ActionCable web sockets. No need for custom JavaScript.

Please read the official ActionCable docs to learn more about ActionCable before proceeding.

๐Ÿ“š Docs

๐Ÿ’™ Community

  • Discord - primary support channel

๐Ÿš€ Install

Rubygem

bundle add cable_ready

JavaScript

There are a few ways to install the CableReady JavaScript client, depending on your application setup.

ESBuild / Webpacker

yarn add cable_ready

Import maps:

# config/importmap.rb

# ...

pin 'cable_ready', to: 'cable_ready.min.js', preload: true

Rails Asset pipeline (Sprockets):

<!-- app/views/layouts/application.html.erb -->

<%= javascript_include_tag "cable_ready.umd.min.js", "data-turbo-track": "reload" %>

Checkout the documentation to continue!

๐Ÿ™ Contributing

Code of Conduct

Everyone interacting with CableReady is expected to follow the Code of Conduct

Coding Standards

This project uses Standard and prettier-standard to minimize bike shedding related to code formatting.

Please run ./bin/standardize prior submitting pull requests.

๐Ÿ“ฆ Releasing

  1. Make sure that you run yarn and bundle to pick up the latest.
  2. Bump version number at lib/cable_ready/version.rb. Pre-release versions use .preN
  3. Run rake build and yarn build
  4. Commit and push changes to github
  5. Run rake release
  6. Run yarn publish --no-git-tag-version
  7. Yarn will prompt you for the new version. Pre-release versions use -preN
  8. Commit and push changes to GitHub
  9. Create a new release on GitHub (here) and generate the changelog for the stable release for it

๐Ÿ“ License

CableReady is released under the MIT License.

cable_ready's People

Contributors

acarpe avatar andreaslillebo avatar andrewerlanger avatar andrewmcodes avatar assuntaw avatar back2war avatar barrywoolgar avatar dabit avatar dependabot[bot] avatar erlingur avatar excid3 avatar existentialmutt avatar grncdr avatar henrik avatar hopsoft avatar jaredcwhite avatar joshleblanc avatar julianrubisch avatar konnorrogers avatar leastbad avatar marcoroth avatar matt-yorkley avatar n-rodriguez avatar palkan avatar paul avatar pskarlas avatar rickbenavidez avatar rrosen avatar sarriagada avatar sztheory avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.