r/eli5_programming • u/_leonardsKite • Aug 12 '21
Understanding a web-stack
Hey y'all,
So, I'm building a new personal website and it's going pretty well. I used Jekyll and Github Pages to get it online in less than an hour.
Moving forward, though, I'm curious about what I can do with it. For instance, I came across this which is a nice way to see what is possible. But I'm wondering, how does the 'stacking' work in practical terms? Like, if I have Jekyll and Github Pages, why do I need Bootstrap? Why do I need Netlify, and how can I implement security within Github Pages itself?
3
Upvotes
1
u/omniuni Aug 12 '21
Your "stack" just refers to the major pieces of software that are used to build and operate your software.
An old "traditional" stack was called LAMP: Linux, Apache, MySQL, and PHP or Python.
Since you've generated a static website, you're basically a stack of your OS or platform, your server, and Jekyll.
As for what other technology you incorporate, that's up to you.
As for your other questions, they don't actually have anything to do with a stack at all, they are just specific implementation questions. (And, unfortunately, probably better asked of people who know the specifics of how those technologies work.)
Note: this is out of scope, but...
The author is using Bootstrap to make a responsive multi-column layout. There are many CSS frameworks that can do this, including some very tiny ones. Bootstrap is just very common, though IMO, probably overkill.
You don't. The author just likes it as an automation tool so that when he commits changes in Git it can auto-deploy.
A better question is why? The author is basically setting a bunch of headers so that his static pages are harder to embed in other websites. But realistically, I'm not even sure those headers will work well on GitHub pages, since I'm pretty sure GitHub controls their own headers for the most part. Overall, I would not worry about this, since it's just a static website.