5.1. Preparing workspace
To start working on this project you have two options: an online or a local editor.
Online editor. Just go to StackBlitz. It installs everything and starts the app. Keep the tab open, because you'll carry your changes through the whole chapter.
Local development. Clone shippingboard-lite, branch create-ramp-view, open it in VS Code, then install and run it:
git clone --branch create-ramp-view \
https://github.com/adam-zielonka/shippingboard-lite.git
cd shippingboard-lite
code .
pnpm dlx pnpm@8 install
pnpm dlx pnpm@8 dev
The project still has an old pnpm lockfile, and a newer pnpm would rewrite it. pnpm dlx runs the matching pnpm instead. Open the address Vite prints, usually http://localhost:5173.
What we have is one table with all loadings. Click a row and the details dialog opens, where you can move the loading to another ramp. Remember that dialog, because the dashboard will open the same one.
The stores are in src/store and the components in src/components. Store.ts also puts the store on window.store, so you can look into it from the browser console, just like in chapter 4. Leave the dev server running. Every change you make shows up in the browser right away.
