Giter Site home page Giter Site logo

angular-tauri-practice's Introduction

Angular Logo

Introduction

Bootstrap and package your project with Angular 13 (Typescript + SASS + Hot Reload) and Tauri (Rust) for creating Desktop applications.

Currently runs with:

  • Angular v13.2.4
  • Tauri 1.0.0-rc.2

With this sample, you can:

  • Run your app in a local development environment with Tauri & Hot reload
  • Run your app in a production environment
  • Package your app into an executable file for Linux, Windows & Mac

/!\ Angular CLI needs Node 14 or later to work correctly.

Getting Started

Clone this repository locally:

git clone https://github.com/maximegris/angular-tauri.git

Install Tauri (Rust)

https://tauri.studio/docs/getting-started/prerequisites

Install dependencies with npm:

npm install

If you want to generate Angular components with Angular-cli , you MUST install @angular/cli in npm global context. Please follow Angular-cli documentation if you had installed a previous version of angular-cli.

npm install -g @angular/cli

To build for development

  • in a terminal window -> npm start

Voila! You can use your Angular + Tauri app in a local development environment with hot reload!

The application code is managed by src-tauri/main.rs.
In this sample, the app runs with a simple Angular App (http://localhost:4200), and a webView managed by Tauri.

Project structure

Folder Description
src-tauri Tauri main process folder (Rust)
src Tauri renderer process folder (Web / Angular)

Browser mode

Maybe you only want to execute the application in the browser with hot reload? Just run npm run web:serve.

Included Commands

Command Description
npm run web:serve Execute the app in the web browser (DEV mode)
npm run web:prod Build the app that can be used directly in the web browser. Your built files are in the /dist folder.
npm run tauri:bundle Builds your application and creates an app consumable based on your operating system

Your application is optimised. Only /dist folder is included in the final bundle.

angular-tauri-practice's People

Contributors

dyerjos avatar

Watchers

 avatar

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.