In software world, "Boilerplate Code" is synonym of bad code.
Yet, when you begin studying some new tech, you need examples.
IDEs of yore used to have Wizards, guided procedures that treated you with full-functioning programs. Code made by them was not... production-grade code, but it was useful to learn about the programming language / the underlying API / the framework... you get the idea.
When I learned about Eleventy, and followed this tutorial to get a grip on it, I realized that I could not possibly remember all steps by heard.
So, I did the next logical thing: since these steps were -- more or less -- automatable, I built a shell script that
- Creates a working directory tree
- Installs Eleventy and a lot of accessories from npm
- Creates the skeleton of a working site with some styling
- Creates 20 random blog posts by invoking https://fakedown.xoxarle.com/eleventy-post 20 times
- Creates a random color scheme (three dark colors and three light colors. End result might be yucky. You have been warned.)
The end result is a functioning Eleventy site containing a blog section with posts filled with Markovian nonsense :-D (I used it as a starting point for https://smanett.one and wife's site, so it worked for me).
Hope you like it and find it useful. Link is at the bottom of the page. Enjoy!
Edit: photo's not mine, here's its address: https://www.flickr.com/photos/pasukaru76/8536869173/
An Eleventy site bootstrapper.