I’m new to Node, though I’ve used Jekyll numerous times and it powers a few of my sites on Github pages.I’m trying to put together a read only dashboard for a product that basically gets its data from a static source (no DB, but instead a JSON or YAML file that contains the data as an export from the source). This is a temporary solution until people smarter than me can do something real.I found this: https://ift.tt/2HvYmkL. I got it up and running locally (node and Jekyll dependencies). I’m at a loss at how to start my project though.Primarily, I see that Jekyll is used in the template, which makes me think that if I wanted to store this “admin panel” in S3 or some other static source I’d have to compile it somehow. Perhaps just deploying the contents of the _site directory at that point?Second, what is the reason node is a dependency on this template at all?My thoughts are to fork that repo, strip out everything I don’t need, modify the templates to be what I need them to be, then somehow generate the contents of the data directory. I guess that means I’ll need a CD process of some sort that will pull in the latest data, generate new YAML files in the data directory, run npm run to generate a new site, and then deploy the _site directory to something behind HTTP Auth.Is there a simpler solution? I’m sure I’m missing something. How would you use this template to build a simple read-only admin panel from static data files that are perhaps updated nightly? Thanks!
Submitted August 11, 2018 at 09:40PM by manlymatt83
No comments:
Post a Comment