Build the React frontend (required)
Build the React frontend (required)
The PyPI wheel does not contain the React source code or build artifacts; please clone the repository first and use it.pip install -e '.[web]'install.
The PyPI wheel does not include the React source or build. Clone the repository and install with pip install -e '.[web]' first.
needNode.js 18+(including npm). InWarehouse root directorycarry out:
Requires Node.js 18+ (with npm). From the repository root:
# 0. Obtain the source code and install Web dependencies git clone https://github.com/Lord1Egypt/CyberClaw.git cd CyberClaw pip install -e '.[web]' # 1. Install dependencies and build cd frontend npm install npm run build # 2. Confirm the product # The following file should exist:/frontend/dist/index.html # 3. Restart the web server (open a new terminal window and navigate to the repository root directory) # Press Ctrl+C to stop the current cyberclaw web instance, then: cyberclaw web # Or: python-m cyberclaw.cli.main web # 4. Open the browser using the address printed on the terminal (copy the entire address, including the?token= portion).
# 0. Get the source and install Web dependencies git clone https://github.com/Lord1Egypt/CyberClaw.git cd CyberClaw pip install -e '.[web]' # 1. Install deps and build cd frontend npm install npm run build # 2. Confirm output # Expect: <repo>/frontend/dist/index.html # 3. Restart the web server (repo root, second terminal) # Stop the current cyberclaw web process (Ctrl+C), then: cyberclaw web # or: python -m cyberclaw.cli.main web # 4. Open the printed URL in your browser (copy full ?token= if shown)
Ensure that hot updates are available during development.cd frontend && npm run dev(usually: 5173),
However, the production pathway remainscyberclaw webStatic hostingfrontend/dist.
For live reload use cd frontend && npm run dev (usually :5173).
The production path remains cyberclaw web serving frontend/dist.