Skip to main content
Frontend tutorial

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.

05 / ShippingBoard Lite

localhost:5173/?loading=0007703
The details dialog for loading 0007703 over the loadings table. Under Ramp there are buttons A to G and โˆ…, and only C, its current ramp, is blue.

Click a row: this dialog comes back on the dashboard.