stavsap / ComfyUI-React-SDK

Apache License 2.0
6 stars 1 forks source link

Hi! I want to try your code #1

Open hongminpark opened 1 month ago

hongminpark commented 1 month ago

Hi. I was finding react based comfyui project and came across your repository. I was able to run this on my comfyui and now I want to make changes to UI using tailwindcss. It looks like react project code is already built and the output html/css/js is directly used in comfyui.

I am not sure from where to start and how to build. Could you give me simple guide please ?

stavsap commented 1 month ago

Hi, the bind between the comfy ui server and the html pages from React build can be found here

https://github.com/stavsap/ComfyUI-React-SDK/blob/main/__init__.py

it is linking the route (root) and the fetch of the static files from "web" folder. so you can build whatever react project you like and make a build and put it in the web folder.

get familiar with this file first. then you can modify other aspects such as base route and static folder etc...

the react demo project of this repo is in "app" folder but you can have it any desired location. what matters eventually is the static build.

hongminpark commented 1 month ago

Hi, the bind between the comfy ui server and the html pages from React build can be found here

https://github.com/stavsap/ComfyUI-React-SDK/blob/main/__init__.py

it is linking the route (root) and the fetch of the static files from "web" folder. so you can build whatever react project you like and make a build and put it in the web folder.

get familiar with this file first. then you can modify other aspects such as base route and static folder etc...

the react demo project of this repo is in "app" folder but you can have it any desired location. what matters eventually is the static build.

Hey, thanks for your reply! I've forked your repository and started adding my stuff. I was able to run/edit and add my own react project. I really appreciate your base code project. It was the only one with react that I could find!

stavsap commented 1 month ago

great, have fun!