This repository contains the web interface for the Rigel, which connects to the rigel-server-rs API. It uses Preact to maintain a small bundle size and Vite for the build pipeline.
- Node.js (v16 or higher)
- npm or pnpm
git clone https://github.com/rigelchat/rigel-web-preact.git
cd rigel-web-preactnpm install
# or
pnpm installCopy the example environment file and configure the target host and port:
cp .env.example .envEdit .env to set your own PORT and VITE_HOST.
npm run devThe client will be available at http://localhost:5173.
To create the production build:
npm run buildA basic Fastify server is included to serve the production build:
node server.cjsTip
The server uses settings from .env.production.local. Ensure a PORT is defined.
Alternatively, you can serve the contents of the static dist/ directory using Nginx, Apache, or any static hosting service.