Creating a project folder
I find the best way to organize your Raspberry Pi is to put each project in its own folder. In the source code that accompanies this book, I've done just that. But let's walk through how to set up your own project folders. First, you'll want to create the folder itself. For the project in this chapter, which we'll call led-blink
, you'll want to run the following:
cd ~ mkdir led-blink
Make sure that you're running this in your SSH session to the Raspberry Pi, and not on your desktop.
Note
From here on out, unless the text directly says to run something on your desktop, you should run all of your commands in the SSH session to your Raspberry Pi that we set up inChapter 1, Setting Up Your Development Environment.
Setting up npm to manage our modules
We're going to be using more than just Johnny-Five and Raspi-IO to create our projects, and you want to be able to move your code around via your favorite Git hosting service, perhaps to move it to a new Raspberry Pi, for...