A preconfigured, quick start template for making very light and fast desktop applications with the Neutralinojs framework. There's also:
-
Vite - Code bundler for JavaScript related languages. It's known for it's lightning bundling speed, easy setup with any of the SPA frameworks and much more.
-
Vue.js - One of the 3 most used SPA frameworks (along with React and Angular), Vue strives for performance as well as keeping a stable and easy to understand API.
-
Typescript - Strict superset of JavaScript. Gives developers the ability to create their own types and interfaces with many more settings, resulting in much less errors as projects grow larger in size.
-
Get the necessary tools:
yarn global add @neutralinojs/neu
-
Clone this repository and
cd
into it:git clone https://github.com/FeedTheMEe/neutralinojs-vite-vue-ts-template.git && cd neutralinojs-vite-vue-ts-template
-
Setup the "backend" part:
neu update
-
Move into the
frontend
folder:cd frontend
-
Setup the frontend part:
yarn && yarn run build
-
Create a temporary folder in the main project folder called
.tmp
and into it create an emptyauth_info.json
-
!IMPORTANT! Create a symlink for auth_info (necessary for the backend to work):
cd src && rm ./auth_info.json && ln -s /home/yourusername/path/to/your/project/.tmp/auth_info.json ./auth_info.json
And you're done with the setup! Yes, it was that easy.
For us to have hot-reload enabled, we need to run both the neutralino process and frontend separately.
- Make sure you're in the
frontend
folder and run:yarn run serve
- Then create another terminal window instance, cd into the project's base folder and then run
yarn run serve:neu
Now you should have a fully working Neutralino app with live updates from the frontend components.