Depending on the technologies used in your application this might vary.
Render the app into a div with elementId
(the app lives in an open shadow DOM):
initNovaApp('root', {
colorTheme: {
...someTheme,
},
chatConfiguration: {
type: 'client_chat',
baseURL: 'http://localhost:8000',
sessionToken: SESSION_TOKEN,
},
title: 'Nova',
description: 'Developed by Serapion',
messagePlaceholder: 'Type your message here...',
assistantName: 'Nova',
enabledContentTypes: {
images: true,
},
fullscreen: true,
})
then register client functions with
nova.registerFunction('function_identifier', someFunction)
npm install
npm run prepare
Set a valid session token as VITE_CLIENT_SESSION_TOKEN
in an .env file.
npm run dev
npm run build
npm pack
then in the other project run
npm i ../nova-app/serapion-gmbh-nova-app-X.X.X.tgz