As far as development is concerned, an Vue NodeGui application is essentially a Node.js application. The starting point is a
package.json that is identical to that of a Node.js module. A most basic Vue NodeGui app would have the following
All APIs and features found in NodeGui are accessible through the
@nodegui/nodegui modules, which can be required like any other Node.js module. Additionally you have access to all Node.js apis and node modules.
@nodegui/vue-nodegui module exports widgets and features in namespaces. As an example, a window can be created
Window component. A simple
main.js file might open a window:
Add the following code to your
main.js should create windows and handle all the system events your
application might encounter.
createApp function. In future releases, you will be able to add props to this component too. This is very light weight as compared to browser based solutions and hence is more closer to the Operating system.
Clone and run the code by using the
Vue NodeGui has support for basic components like View (similar to div), CheckBox, PushButton and many more. You can take a look at the list of native widgets that Vue NodeGui currently supports here : Native widgets in Vue NodeGui. With time more native components and APIs will be added to Vue NodeGui. Apart from modules in Vue NodeGui, you also have access to the entire node modules ecosystem. Thus, any node module that you can use with Node.js, can be used with Vue NodeGui. This makes it extremely powerful.
Fine, I want something more custom and beautiful than just native looking widgets. What do I do?
To make things more beautiful, you will have to learn about styling. Lets take a look at that next.