web-chat-frontend
A minimal Vue chat client for nanobot WebChannel.
Now supports phone + password login before entering chat.
Setup
cd web-chat-frontend
npm install
cp .env.example .env
npm run dev
By default it connects to http://127.0.0.1:9000.
Environment Variables
VITE_API_BASE: WebChannel base URLVITE_AUTH_BASE: Standalone auth service base URLVITE_SENDER_ID: sender id passed to WebChannel/messageVITE_CHAT_ID: chat id used for SSE stream and routingVITE_API_TOKEN: fixed bearer token for WebChannel auth
Endpoints Expected From WebChannel
POST /messageGET /events/{chat_id}(SSE)GET /history/{chat_id}GET /health
Endpoints Expected From Auth Service
POST /auth/registerPOST /auth/loginGET /auth/me
Description
Languages
Vue
69.5%
CSS
28.4%
HTML
1.1%
JavaScript
1%