mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-29 08:21:06 +08:00
webui: remove unused packages, refresh deps, and update README
This commit is contained in:
@@ -1,9 +1,48 @@
|
||||
## Run Locally
|
||||
# ClawGo WebUI
|
||||
|
||||
**Prerequisites:** Node.js
|
||||
React + Vite frontend for ClawGo WebUI.
|
||||
|
||||
## What was cleaned
|
||||
|
||||
1. Install dependencies:
|
||||
`npm install`
|
||||
2. Run the app:
|
||||
`npm run dev`
|
||||
- Removed unused packages:
|
||||
- `@google/genai`
|
||||
- `better-sqlite3`
|
||||
- `dotenv`
|
||||
- `@types/react-router-dom` (v5 typings, not used)
|
||||
- Moved build-only tooling to `devDependencies` (`vite`, `@vitejs/plugin-react`, `@tailwindcss/vite`, etc.).
|
||||
- Updated package metadata/name to `clawgo-webui`.
|
||||
|
||||
## Development
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- Node.js 18+
|
||||
|
||||
### Install
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
### Start local dev server
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
### Build
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Preview build
|
||||
|
||||
```bash
|
||||
npm run preview
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
- `server.ts` is a local dev fallback API server.
|
||||
- Production deployment uses ClawGo gateway `/webui/api/*` endpoints, not SQLite.
|
||||
|
||||
Reference in New Issue
Block a user