A simple React template for building Neutralinojs apps with Vite as bundler and Typescript
All prerequisites of Neutralino, Vite, React and Typescript apply. You should have Neutralinojs CLI installed.
Create a new Neutralinojs project with this template with the following command:
neu create myapp --template Cloudwerk/neutralinojs-vite-react-tscd myapp- Create a
.envfile with the contentVITE_GLOBAL_URL=http://localhost:3000/
- Clone this repository
- Adjust the
modes.window.titleandcli.binaryNameto your desired Application Name inside theneutralino.config.jsonfile - Open a Terminal inside the repos root
- run
neu update - run
cd vite-src - Adjust the
nameproperty to your desired Application Name inside thepackage.jsonfile - Create a
.envfile with the contentVITE_GLOBAL_URL=http://localhost:3000/ - run
npm install
None :)
Start the React development server and Neutralinojs app:
neu runTrigger a new React build and create the application bundle with the following command:
neu build