givanz / VvvebJs

Drag and drop page builder library written in vanilla javascript without dependencies or build tools.
https://www.vvveb.com/vvvebjs/editor.html
Apache License 2.0
7.16k stars 1.64k forks source link

Run this apps as node apps #273

Open richierh opened 1 year ago

richierh commented 1 year ago

How to run this in node ? I am having trouble to use it since I do not understand php

the-ameen commented 1 year ago

this can't be run as node project its core php !

givanz commented 1 year ago

Hi

The only php part of the project is a small couple of php examples editor.php that loads the file list used in the file manager list and upload.php on how to save the page to server.

You can use any server side language for saving the content to server just replace save.php for data-vvveb-url in <button class="btn btn-primary btn-icon" title="Export (Ctrl + E)" id="save-btn" data-vvveb-action="saveAjax" data-vvveb-url="save.php" data-v-vvveb-shortcut="ctrl+e"> https://github.com/givanz/VvvebJs/blob/master/editor.html#L68

In the server side script you need to access form POST data that will contain an array with html key for content and file for filename.