SunnieJS is a platform for the generation of native web applications that has its own CMS for the management and generation of the applications. The SunnieJS CLI allows the generation of elements within the platform that will be used by users for the management of the sites and their corresponding contents.
npm i sunniejs-cli
You can install SunnieJS platform running the following command:
sunniejs-cli init
This command will install SunnieJS in your current directory.
For it to work, you need to have previously installed the SunnieJS platform.
You can download the latest version from the SunnieJS home page: https://www.sunniejs.com/en/ or run:
sunniejs-cli init
To create a new component, you must go to the plugins / components folder of the SunnieJS project and execute the following command:
sunniejs-cli component add
Once finished, the wizard will create all the basic structure of a component and it will be ready to be used on any page of any site you have created.
To create a new layout, you must go to the plugins / layouts folder of the SunnieJS project and execute the following command:
sunniejs-cli layout add
Once the wizard is finished, a layout will be created with the format selected during the creation process and will be available to apply to any page through the platform.
To create a new theme, you must go to the plugins / themes folder of the SunnieJS project and execute the following command:
sunniejs-cli theme add
Once the wizard is finished, the appearance theme will be available to be applied to the site you want through the SunnieJS platform.
To create a new site, you must go to the plugins / sites folder of the SunnieJS project and execute the following command:
sunniejs-cli site add
Once the process is finished, it will be necessary to deploy the site by executing the following:
gulp deploySites --env dev --site NameOfSite
After this, the site will be available for viewing.
To create a new page, you must go to the site folder where you want to add the plugins / sites / NameOfSite page and execute the following command:
sunniejs-cli page add
After finishing the process, the page will be added to the chosen site in the selected position, but it will be necessary to unfold the page so that it can be viewed by executing the following command:
gulp deploySites --env dev --site NameOfSite --pag NameOfPage
After this, the page will be available for viewing.