Giter VIP home page Giter VIP logo

svelte-tauri's Introduction

svelte-tauri

This is a project template for Svelte apps mounted in Tauri and based on Svelte-HMR. It lives at https://github.com/silvestrevivo/svelte-tauri

To create a new project based on this template, ensure you have RUST and CARGO installed locally. Then download or clone the repo and intall the cargo tauri blunder:

cargo install tauri-bundler

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd svelte-tauri
npm install

...then start Rollup:

npm run dev
tauri dev

Navigate to localhost:8000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

Building and running in production mode

To create an optimised version of the app:

npm run build && tauri build

svelte-tauri's People

Contributors

silvestrevivo avatar

Stargazers

netop://ウエハ avatar Samuel Crow avatar Sacha Arbonel avatar Alexander Mikuta avatar Satyam Tiwary avatar Devansh Parapalli avatar James Dixson avatar NeuroWhAI avatar  avatar Roman Hossain Shaon avatar Jordan Coeyman avatar Björn Sackemark avatar Peyman Borhani avatar Nurullah Torun avatar milkbump avatar Antony Jones avatar

Watchers

James Cloos avatar  avatar

Forkers

rixo abishek28007

svelte-tauri's Issues

Browser server is not killed after Ctrl + C

Tauri gets launch on server localhost:8000. When the app is stoped with Ctrl + C, Tauri app stops to work but the Svelte app remains in the localhost:8000. It sees that the server is never killed.

This has to be solved to have a good user experience and local performance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.