New app

puzzle init scaffolds a working app: a route table, a layout, two views, a component, a Tailwind stylesheet and the build config. Call it music. It is the small music library you will build over the rest of this tutorial.

The app name becomes the folder name and the npm package name, so keep it to lowercase letters, digits and hyphens.

Your turn

  1. Run puzzle init music.
  2. Move into the new folder and install its dependencies.

The file list beside the commands is exactly what init writes. You will open every one of them in chapter 2.

Run puzzle init with no name in a terminal and it asks for one, and for a template. In a script it uses the defaults and asks nothing.

Chapters