Localhost
Iteria Lowcode is integrated in Vite dev server via Iteria Lowcode plugin, which:
- injects necessary HTML/Javascript/CSS into the web app (site)
- exposes filesystem to the browser
Limitations
- Limited security (file system access via HTTP)
Usage
vite-config.js
import iteriaLowcode from '@iteria-app/vite-plugin-lowcode`
...
export default ({command, mode}) => {
return defineConfig({
plugins: [
iteriaLowcode({
command,
mode,
graphQLEndpoint: 'https://your-endpoint-url.com'
})
]
})
}
Options
Lowcode can be configured to work as you want by specifying input parameters to the vite-plugin-lowcode
.
interface Options {
graphQLEndpoint: string
injectMode?: 'jamstack' | 'devsever'
version?: number
features?: {
tippy?: boolean
generator?: boolean
addFields?: boolean
translations?: boolean
themeEditor?: boolean
graphQLEndpoint?: boolean
floatingButton?: boolean
erd?: boolean,
commit?: boolean,
save?: boolean
}
whitelistedEnvs?: string[]
development?: boolean
}
Vite
vite build
creates production build without Iteria Lowcode
vite build -mode development
injects the Iteria Lowcode