A visual AI editor for React applications
-
[Optional] Create a React app, if you don't have one already.
cd ~ npm create vite@latest my-react-app -- --template react -
The WebPack loader assumes you're pointed at a React app which uses a standard Vite configuration, otherwise you may see some errors related to the following:
- Make sure it's importing React (e.g.
import React from 'react') - Make sure it doesn't have any absolute imports (bad:
'/vite.svg', good:'../public/vite.svg')
- Make sure it's importing React (e.g.
-
Edit
serve-react/.envwith the path to the main React component.TARGET_APP_PATHis the absolute path to the React project (e.g./Users/jane/my-react-app)TARGET_APP_COMPONENTS_DIR/TARGET_APP_ROOT_COMPONENTis the relative path to the file containing your main component (e.g.src/App.jsx)
-
Start the agent server in one terminal.
cd agent-server/ npm install npm start -
Start the React app server in another terminal.
cd serve-react/ npm install npm start -
Start the Design Wrapper front-end in another terminal.
cd visual-designer/ npm install npm start -
Open http://localhost:5173 in your browser.
-
Start editing!