ollieshop start is the local half of Ollie Studio. It builds every component of the project, serves the bundles with hot reload, and opens Studio, which pushes them into a preview of your real checkout.
ollie.json with a storeId (see Project configuration). Does not need a login.
What you see
studio-* ids mark unlinked components (not yet in your store). Below the list the server logs the last requests and, with --browser-logs, the console lines your components print in the preview. Keys: q quits, r forces a rebuild, o opens Studio.
How it works
- The server listens on port 4000. The port is fixed because Studio looks for it there. It also uses port 4001 internally, which is the default port of
function dev; run that one on another port when both are up. - Components are discovered from the
ollie.jsoncomponents map, then from folders undercomponents/. Eachindex.tsxis bundled tonode_modules/.ollie/build/<name>/index.js(plus a.csswhen the component imports styles).react,react-dom,next,next-intland@ollie-shop/sdkare left external: the checkout provides them. components/and theollie*.jsonfiles are watched. Saving a file rebuilds and notifies Studio, which reloads the component in the preview.http://localhost:4000/manifest.jsonlists the components with their ids, slots and build errors. Studio reads it; you can open it to see what the server found.- When Studio publishes an unlinked component, it asks the dev server to record the new UUID in
ollie.json, so the folder is linked from then on.
Startup messages
Related
- Ollie Studio: what happens on the other side of port 4000
- Project configuration: the components map and stages
- deploy: shipping a component from the terminal instead of Studio