Skip to content

Getting started

From the ZIP to Pulze running on your computer in about five minutes.

1. What you need

  • Node.js 22.18 or newer (24 recommended). Check with node -v. If it's older, install the LTS version from nodejs.org.
  • pnpm (recommended). Node includes it: run corepack enable once. npm and yarn work too; see Using npm or yarn.
  • An editor. VS Code works well with these extensions: Tailwind CSS IntelliSense, ESLint and Prettier.

2. Pick a version

The ZIP has two complete projects with the same pages. You only need one.

Folder Choose it if
pulze-nextjs You want server rendering, API routes in the same project, or plan to deploy on Vercel.
pulze-vite You want a plain single-page app (any static host works) or already use React Router.

Not sure? Pick Next.js. The detailed differences are in step 7.

Copy the folder you picked to where you keep your projects and rename it if you like (for example orbit-admin). It doesn't depend on anything else in the ZIP.

3. Install and run

cd pulze-nextjs      # or pulze-vite
pnpm install
pnpm dev

Then open the address it prints:

  • http://localhost:3000 for Next.js;
  • http://localhost:5173 for Vite.

You'll see the Analytics dashboard with the sample company, Acme:

The Analytics dashboard after pnpm dev

Edit any file and save: the browser updates straight away. On the sign-in pages any email and password work until you connect a real provider (Authentication).

4. Build for production

pnpm build
pnpm start           # Next.js: serves the build on http://localhost:3000
pnpm preview         # Vite: serves dist/ on http://localhost:4173

A build that finishes without errors is ready to deploy: Deploy.

5. Scripts

Run each with pnpm <script>.

Script Next.js Vite What it does
dev ✓ ✓ Runs the app with instant reload while you edit.
build ✓ ✓ Makes the production build (Vite checks types first).
start ✓ Serves the production build.
preview ✓ Serves the production build.
lint ✓ ✓ Checks the code for mistakes with ESLint.
typecheck ✓ ✓ Checks TypeScript types.
format ✓ ✓ Formats every file with Prettier (Tailwind classes sorted).
seed ✓ ✓ Regenerates the sample data from src/data/seed.config.ts (Data and API).
routes:sync ✓ Writes the route files in app/ from src/config/routes.ts (Adding a page).
test ✓ ✓ Builds the app and runs the end-to-end tests (step 6).

6. Tests

Each project has three sets of Playwright tests in tests/, run against a production build at desktop and phone sizes:

File Checks
smoke.spec.ts Every page in src/config/routes.ts opens with a heading and the right tab title, and nothing errors in the console.
a11y.spec.ts Every page passes the axe accessibility checks (WCAG 2.2 AA), in light and dark.
keyboard.spec.ts Skip link, visible focus on every Tab stop, ⌘K, dialogs and the theme drawer.

The first time, download the test browser:

pnpm exec playwright install chromium

Then:

pnpm test                         # everything (a few minutes)
pnpm test tests/smoke.spec.ts     # one file
pnpm test --project desktop       # desktop size only
pnpm exec playwright show-report  # the last run, in the browser

New pages are tested automatically once they're in src/config/routes.ts, and pages of apps you turn off are skipped. When you change a page's heading or remove something a test uses, update that test. If you don't want the tests, delete tests/ and playwright.config.ts, and remove @playwright/test and @axe-core/playwright from package.json.

7. How the two versions differ

The pages, blocks, theme, data and docs are the same. What's different is how each one loads pages and how it's hosted:

Next.js Vite
Routes One small file per page in app/ (pnpm routes:sync writes them from config/routes.ts) Built from config/routes.ts in src/router.tsx; nothing to sync
Page code loads Prefetched when links appear on screen Preloaded when you hover, focus or touch a link (src/nav-adapter.tsx)
First visit Server-rendered HTML A short loading screen (FirstLoad in src/router.tsx) while the page loads
Slow page change — A thin bar at the top after 150 ms (NavProgress in src/router.tsx)
Scroll on page change Top of the new page; Back restores The same (<ScrollRestoration />)
A page crashes app/(app)/error.tsx errorElement in src/router.tsx
Unknown URL app/not-found.tsx The * route in src/router.tsx
Tab titles metadata in each page file TitleSync in src/router.tsx
Fonts next/font (self-hosted at build) @fontsource-variable/* packages
Hosting Vercel, or any Node.js host Any static host

Deep links on static hosts (Vite). A single-page app needs the host to answer every address with index.html. Pulze includes the rule for the common hosts:

  • Vercel: vercel.json (already in the project).
  • Netlify / Cloudflare Pages: public/_redirects (already in the project).
  • Anything else: add a "rewrite all paths to /index.html" rule. Without it, refreshing /apps/kanban shows the host's own 404.

Full hosting steps: Deploy.

8. What's in each project

pulze-nextjs/                       pulze-vite/
  app/          route files           index.html
  src/                                src/
    config/     site.config.ts,         main.tsx, router.tsx, providers.tsx
                menu, routes, theme     config/ data/ screens/ blocks/
    data/       sample data, fake API   layout/ motion/ ui/ lib/
    screens/    the 30 pages          public/     favicon, robots.txt, _redirects
    blocks/     cards, charts, tables scripts/    seed
    layout/     shell, sidebar, ⌘K    tests/      Playwright tests
    motion/     animation presets     vite.config.ts
    ui/         buttons, inputs…
    lib/        helpers, nav adapter
  scripts/      seed, routes:sync
  tests/        Playwright tests
  next.config.ts

The folders in src/ are the same in both projects, and you import them the same way: import { KpiCard } from "@pulze/blocks" means src/blocks. (The @pulze/… names are set in tsconfig.json, and for Vite also in vite.config.ts.) The full map is in Introduction › How these docs work.

A few small files you can leave alone unless you need them:

File What it's for
components.json Settings for the shadcn CLI, so pnpm dlx shadcn@latest add tabs puts new components in src/ui.
src/blocks/package.json, src/layout/package.json Tell the bundler these folders have no side effects, so unused blocks stay out of the build. Keep them.
.env.example The format for .env.local when you connect a backend.
.nvmrc The Node.js version, for nvm use and hosts that read it.
eslint.config.mjs, .prettierrc.json Lint and format settings.

9. Put it in git

git init
git add -A
git commit -m "Pulze 1.0.0"

Commit before you change anything: it makes updating Pulze much easier later. Keep the repository private; the licence doesn't allow publishing Pulze's source.

Using npm or yarn

Delete pnpm-lock.yaml first, so two lock files don't disagree, then:

npm install          # or: yarn
npm run dev          # or: yarn dev

Every pnpm <script> in these docs becomes npm run <script> (or yarn <script>), and pnpm add x becomes npm install x.

Next steps