{ "author": "Zed A. Shaw", "date": "Dec 30, 2022", "has_image": false, "tag": "Demo", "icon": "baby", "summary": "How to get started with The Bandolier in about 20 minutes." } ------ # Getting Started in About 20 Minutes This quick guide will get the [bandolier-template](https://git.learnjsthehardway.com/learn-javascript-the-hard-way/bandolier-template) installed on your computer and ready to modify. I say it should take about 20 minutes, but in the world of JavaScript that depends on a lot of factors. If you have a slow network then installing the `node_modules` could take 60+ minutes. If you are on Windows you could run into weird errors with `node-gyp`. Oh wait, if you're on _any_ platform that steaming pile of combustible garbage called `node-gyp` will probably cause problems. "Twenty minutes" is a rough guess if nothing goes wrong. If something does go wrong, please let me know so I can sort out what's happening. These instructions are tested on macOS, Windows 10, ArchLinux and alpine Linux.
node-gyp
.
bando-up
command is also used during the Learn JS the Hard Way course to install exercise code, sample projects, and other tools. If you want to see how it works and create your own "off grid" npm
setup then read How to Create Your Own npm init
and Get Off npmjs.com.
Couldn't get a file descriptor referring to the console
when the commands/init.js
script tries to run Node's execSync
. Currently I have no idea why this error happens, as it doesn't happen on any Linux I run. If you have an idea what's causing this, please let me know.
lib/testing.js:playstart
.
commands/build.js
. It uses the reload functionality found in esbuild so it might not reliably reload on your platform. Please let me know if you have any ideas why it fails on your setup.
client/routes.js
file is a debatable choice. It might be possible to generate the routes from other sources--possibly as an option in the .svelte
file--but there's so many web frameworks that have this kind of routing configuration that it might be educational to keep it. Let me know what you think.