-
Notifications
You must be signed in to change notification settings - Fork 0
Testing Bootstrap UI for MeshCentral
In this guide, we'll explain how to test the new Bootstrap 5 MeshCentral UI version, which has been added to the views/default3.handlebars
file. Since we're still working on a way to toggle between the classic UI and the Bootstrap UI via the config.json
, the current method involves manually switching the template files.
Before you begin, ensure that you have the following installed:
- Node.js: Ensure that Node.js is installed. You can download it from here.
- Git: Make sure Git is installed. Get it from here.
Follow these steps to switch from the classic UI to the Bootstrap version, test it locally, and switch back if needed.
First, you'll need to clone the MeshCentral repository from GitHub to your local environment.
git clone https://github.com/Ndaboom/MeshCentral.git
cd MeshCentral
After cloning the project, run the following command to install necessary dependencies:
npm install
To switch to the Bootstrap UI, follow these steps:
- Navigate to the
views
folder within the MeshCentral project directory:
cd views
- Rename
default.handlebars
(the current classic UI) to something else, likedefault-classic.handlebars
:
mv default.handlebars default-classic.handlebars
- Rename
default3.handlebars
(the Bootstrap UI) todefault.handlebars
:
mv default3.handlebars default.handlebars
To apply the changes, you need to restart the MeshCentral server. Return to the project root and run the following command:
node meshcentral.js
This will restart the MeshCentral server, and you should now see the Bootstrap-based UI when accessing the platform.
If you want to switch back to the classic UI, reverse the steps:
- Navigate back to the
views
folder:
cd views
- Rename
default.handlebars
(Bootstrap UI) back todefault3.handlebars
:
mv default.handlebars default3.handlebars
- Rename
default-classic.handlebars
back todefault.handlebars
:
mv default-classic.handlebars default.handlebars
After reverting to the classic UI, restart the server again:
node meshcentral.js
Now, the classic UI will be restored.
That's it! By following these steps, you can test the Bootstrap version of the MeshCentral UI. Once we finalize a way to switch between UIs via the config.json
file, we’ll update this documentation accordingly.