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
6.86k stars 1.58k forks source link

Localhost XAMP #338

Open raoharis951 opened 4 months ago

raoharis951 commented 4 months ago

It is not running on localhost I tried alot & also i tried on hostinger too the them section is empty. Will you please provide me the complete guided video of the process to run on localhost.

givanz commented 4 months ago

Do you get an error message? Can you please check if there are errors in the developer console (F12 key in Chrome browser) and paste them here?

To work on xampp all you need is to unzip the latest release https://github.com/givanz/VvvebJs/releases in C:/xampp/htdocs

Then open http://localhost/editor.html or http://localhost/editor.php if you want to display saved pages in the file manager.

raoharis951 commented 4 months ago

Failed to load resource: the server responded with a status of 404 (Not Found) This is the error that appears in Console and i want to run it on local.

raoharis951 commented 4 months ago

Will you please make a video of complete installation for admin dashoard and editor on local how to connect them also let me know the whole process for this step by step.

givanz commented 4 months ago

admin dashboard

Do you use Vvveb CMS or VvvebJs page builder?

Only the CMS has an admin, VvvebJs has only one page, the page builder it comes without an admin dashboard.

Vvveb CMS has VvvebJs page builder built in you don't need to install both.

Do you need a video with the CMS installation or after installation setup?

Installation is very easy, after unzipping latest.zip to htdocs folder follow the installation instructions https://docs.vvveb.com/installation

You can use SQLite if you don't want to configure database details for an easier install.

raoharis951 commented 4 months ago

CaptureERROR Yes I want CMS complete video of this project both installation and after installation so i can understand how it run.

INTERC3PTI0N commented 4 months ago

CaptureERROR Yes I want CMS complete video of this project both installation and after installation so i can understand how it run.

I initially faced the same issue too, but it seems in order to make it work you have to put all the files into the main htdocs directory itself, not in a sub-directory inside htdocs. I just installed a copy of xampp and deleted everything from htdocs folder, and extracted the zip file directly inside htdocs. That works well. I'm sure there's other ways to make it work via .htaccess or whatever, but I didn't need xampp anything else. Also manually update MariaDB to newer version, otherwise you'll face JSON_ARRAYAGG errors.

givanz commented 4 months ago

@INTERC3PTI0N

Thanks for info on subdirectory issues with XAMPP. For subdirectory installation V_SUBDIR_INSTALL must be set in env.php to subdirectory name

defined('V_SUBDIR_INSTALL') || define('V_SUBDIR_INSTALL', '/subdir');

https://github.com/givanz/Vvveb/blob/master/env.php#L46-L47

But is better to use from htdocs directly because with subdirectory install there can be issues with things like multi site.

@raoharis951

I just saw the screenshot, it was not visible before, I see that you are loading Vvveb from /latest subfolder you can either set V_SUBDIR_INSTALL or move the files to /htdocs as @INTERC3PTI0N recommends.

defined('V_SUBDIR_INSTALL') || define('V_SUBDIR_INSTALL', '/latest');