The sveltekit plugin for svelte-chat solution
Plugin for svelte-chat which in conjuction with @svelte-chat/gui makes remakable chat experiences which at least can handle cases from your online shop etc... full documentation
- This plugin is required to handle communication demanded by frontend solution part which is the @svelte-chat/gui
- Use only with @svelte-chat/gui to make full svelte-chat solution
$ npm i @svelte-chat/plugin
1st: Use svelteChatPlugin which embedds all source functionalities (with administration included)
// vite.config.{js,ts}
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
// Import plugin from module
import { svelteChatPlugin } from "@svelte-chat/plugin";
export default defineConfig({
plugins: [sveltekit(), svelteChatPlugin()]
});
Fine grained configuartion covers for moment ports configuration for: basic app communication, admin app and all these optionally and separately.
You have to pass config as JSON content for your Device Environment Variable SVELTE_CHAT
Configuration JSON Overlay:
{
/* Admin app - Where serves app under whose you can manage clien cases */
"admin_server": {
"port": 10502
},
/* App communcation - so where your client-side will be call, to get and send informations */
"server": {
"port": 10501
}
}
As Device ENV "SVELTE_CHAT":
Ok, So when we defined what you can configure, to make this work and end fine-grained configuration you must pass such short config to device environment varaible SVELTE_CHAT
Always will be correct for bash CLI (beyond powershell and cmd):
$ ORIGIN="admin_server.port" npm run dev
$ ORIGIN="admin_server.port" node .
This isn't my idea but determined via how transpiled to node.js sveltekit app works. Please don't be angry on me 😍!
You feel will to help in solution evolution. Don't be shy and pull issue with demand like: I would like take the participation in evolution because ...[cause]
All what you should know about Copyrights is that all code base is under Apache 2.0