Run it
npm run dev runs puzzle dev, the development server. It compiles every .pzl file, runs Tailwind, serves the app on port 3000 and watches app/ for changes. Save a file and the browser reloads, with your app's state kept across the reload.
The preview under the command is the scaffold you just made, compiled by the Puzzle compiler running in this page. It is the same app you would see at localhost:3000. Click the counter to check it is alive.
Your turn
- Run
npm run devinside themusicfolder. - Open
http://localhost:3000in your browser.
Port 3000 busy? The dev server moves up to the next free port and tells you which one it took. Pass --port 3080 to pick your own.