wandb / openui

OpenUI let's you describe UI using your imagination, then see it rendered live.
https://openui.fly.dev
Apache License 2.0
16.81k stars 1.47k forks source link

Front End and Deployment #139

Open codingbjorn opened 1 month ago

codingbjorn commented 1 month ago

I have been working in this repo for a bit now and I am having a hard time understanding the communication between the front end and the backend. I launched this on railway and it launches both front and backend, however any changes I seem to make to the front end don't get updated in the container image. Can you give any insights on URL configuration if I wanted to launch tehm seperately. When it launched completely on railway even though I was referencing the backend build files. It almost seems as though there are two separate index pages that are identical but named differently? Any insight or direction would be appreciated

vanpelt commented 1 month ago

Hey @codingbjorn. Running npm run build from the frontend directory will automatically copy the built assets into backend/openui/dist. That's what's going to make it into the docker container when building it.