This is my personal blog.
Prerequisites:
- Node.js (v20+ or LTS)
- pnpm (v10+)
Linux / macOS:
```sh
# Install pnpm (if not already installed)
curl -fsSL https://get.pnpm.io/install.sh | sh -
# Install Node.js LTS using pnpm (if Node.js is not already installed)
pnpm env use --global lts
# Install dependencies and start development server
pnpm install
pnpm run dev
```
Windows:
```powershell
# Install pnpm (if not already installed)
iwr https://get.pnpm.io/install.ps1 -useb | iex
# Install Node.js LTS using pnpm (if Node.js is not already installed)
pnpm env use --global lts
# Install dependencies and start development server
pnpm install
pnpm run dev
```
Commands:
- `pnpm run dev` - Start the local VitePress development server
- `pnpm run build` - Build the production site to .vitepress/dist
- `pnpm run serve` - Preview the production build locally