A template for a Node.js application that's using Slint for the user interface and Node.js for the build system.
This template helps you get started developing a Node.js application with Slint as toolkit
for the user interface. It demonstrates the integration between the .slint
UI markup and
JavaScript code, how to trigger react to callbacks, get and set properties and use basic widgets.
In order to use this template and build a Node.js application, you need to install a few tools:
- Node.js (v16. or newer)
- npm
- Rust compiler (1.70 or newer)
- Clone or download this repository
git clone https://github.com/slint-ui/slint-nodejs-template my-project cd my-project
- Install dependencies with npm
npm install
- Run the application binary
npm start
We recommend using an IDE for development, along with our LSP-based IDE integration for .slint
files. You can also load this project directly in Visual Studio Code and install our Slint extension.
We hope that this template helps you get started and you enjoy exploring making user interfaces with Slint. To learn more
about the Slint APIs and the .slint
markup language check out our online documentation.