Guide or sample needed for creating a component (UI service) including back


I want to create standalone web application as component with both UI and backend. The web site/page that using the component should be still working for other functions while the component is not available or under deployment/update.

The component would be leveraged in multiple web applications with few configurations to provide consistence functions including both front-end and backend.

Any guidance will be appreciated!