Example of database to create Vite(quickly) web app using popular js modules and framewords such as react, vuejs, svelte, ...
Go to your database root folder and type
npm init vite your-app-nameThen select your preferred web framework (and then javascript or typescript):
Select a framework: › - Use arrow-keys. Return to submit.
❯ vanilla
vue
react
preact
lit
svelteIt will create a folder with your app name (ie. your-app-name).
Go to this folder and install npm modules
cd your-app-name
npm installYou can type
npm run devA node http server will start at http://localhost:3000
You coud now develop your web app.
You must configure Vite to deploy on 4D WebFolder.
To do so edit vite.config.js and fill build.outDir with relative path.
export default defineConfig({
...,
build: { outDir: "../WebFolder" }
})Then type
npm run buildYou could now open your browser and navigate to your 4D server url (for instance http://localhost)
Vite in 100s

