Skip to content

djsauble/design-wrapper

Repository files navigation

Design Wrapper

A visual AI editor for React applications

Setup

  1. [Optional] Create a React app, if you don't have one already.

    cd ~
    npm create vite@latest my-react-app -- --template react
    
  2. 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:

    1. Make sure it's importing React (e.g. import React from 'react')
    2. Make sure it doesn't have any absolute imports (bad: '/vite.svg', good: '../public/vite.svg')
  3. Edit serve-react/.env with the path to the main React component.

    1. TARGET_APP_PATH is the absolute path to the React project (e.g. /Users/jane/my-react-app)
    2. TARGET_APP_COMPONENTS_DIR/TARGET_APP_ROOT_COMPONENT is the relative path to the file containing your main component (e.g. src/App.jsx)
  4. Start the agent server in one terminal.

    cd agent-server/
    npm install
    npm start
    
  5. Start the React app server in another terminal.

    cd serve-react/
    npm install
    npm start
    
  6. Start the Design Wrapper front-end in another terminal.

    cd visual-designer/
    npm install
    npm start
    
  7. Open http://localhost:5173 in your browser.

  8. Start editing!

About

AI design wrapper for React CRA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published