Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.12 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.12 KB

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