Skip to content

Getting Started ​

Prerequisites ​

  • Node.js 18+
  • pnpm (recommended) or npm

Installation ​

bash
cd site
pnpm install

Development ​

Start the development server:

bash
pnpm dev

Visit http://localhost:5173 in your browser.

Building ​

Create a production build (main app + docs):

bash
pnpm build

Output:

  • dist/ - Main app
  • dist/docs/ - VitePress documentation (auto-copied)

Build steps (automated):

  1. Build main app → dist/
  2. Build VitePress docs → docs/.vitepress/dist/
  3. Copy docs to dist/docs/

Preview Production Build ​

bash
darkhttpd dist --port 8080

Access:

Both apps served from single directory!

OpenBSD Setup ​

On OpenBSD, the required native bindings are automatically downloaded during pnpm install via the postinstall hook.

The installation scripts will fetch binaries from:

If you need to manually download or update bindings:

bash
# Run the installation scripts directly
bash scripts/install-tailwind-openbsd.sh
bash scripts/install-rolldown-openbsd.sh

The scripts will:

  1. Download missing binaries from GitHub releases
  2. Patch node_modules to use the OpenBSD bindings
  3. Verify the installation

Testing ​

Run tests:

bash
pnpm test

Watch mode:

bash
pnpm test:watch

Project Structure ​

site/
├── src/
│   ├── components/     # UI components
│   ├── lib/            # Utilities
│   └── pages/          # Page components
├── public/
│   └── data/           # Static data files
├── docs/               # Documentation
└── dist/               # Build output

Korean Business Directory System