FlowiseAI / FlowiseChatEmbed

278 stars 1.18k forks source link

Feature/demo pages #136

Open matthias opened 2 months ago

matthias commented 2 months ago

Hi, This PR adds some demo pages for development. I am sure you have something similar running for your dev environment

This solution checks const isDev = process.env.ROLLUP_WATCH === 'true'; and runs the demo server just for yarn dev (the --watch option sets ROLLUP_WATCH internally)

The demo pages are just very simple static pages - could be improved - just feedback. I also had a version using Astro - which turned out to become to complex - and sometimes had conflicts. So I stayed with plain simple static pages - which can easily be understood, and altered by devs.

There is also a simple demo/chatConfig.js for general settings (like ChatID, apiHost)

Let me know if it's useful - then I could add some documentation.

HenryHengZJ commented 2 months ago

Thanks @matthias ! exactly same thought, thats why we have this PR - https://github.com/FlowiseAI/Flowise/pull/1639 to bring embedded into the main repo with an example app as well