Boxen — A Kit of Parts Squarespace Developer SDK
Download, Install and Code
To get started install the boxen-cli with npm:
npm i boxen-sqs -g
Next find your way to where you like to keep Dev projects. I’m a Mac user and a little oldschool so I still just organize all my Dev projects in the Sites directory. However you do it, get there and Initialize Boxen. For this case we’ll use a project directory called “foobar”:
mkdir foobar cd foobar boxen init
This will install the Boxen SDK from Github. If you’re like me you keep your project code on Github so the next thing you’ll want to do is setup the repository with your first commit. If you aren’t using Git or Github just skip this part of the setup. You can create the repository on Github and then perform the following commands to push the code. Remember to use YOUR repository origin, not the one for this example.
git init git add . git commit -m "first commit" git remote add origin firstname.lastname@example.org:kitajchuk/foobar.git git push -u origin master
So there you go — a fresh, clean project ready for development. That’s always a good feeling :).
Next up: Build, Server and Deploy