Skip to content

cabra-andrade/action-cable-widgets-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Widget Loader with Individual Job calls

This is a proof of concept for making the Pelican's dashboard widget loader a bit more server-rendered and less reliant on massive amounts of JS.

There are some forays here into some potentially unecessary POROs (Plain Old Ruby Objects), check app/models/widget for instance. I think those will probably be replaced by ViewComponents in the merged code.

At the same time, there's potential for MORE abstraction to remove some of the repetition (with inheritance and some meta programming), I'm aware of this. Keep in mind that this is a proof of concept from someone who has limited knowledge of the actual current implementation. So, initially, I'd rather have MORE repetition than risk delving into abstractions too early and risk making some spaghetti code nonsense.

If anything... maybe I already started with too much abstraction. I hope the potential is clear from this example tho. 🤘

Running

bundle install
yarn install
rails s

Also, make sure your redis server is running locally (on another tab as the rails server). Usually this will do:

redis-server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published