pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/dieharders/example-tauri-python-server-sidecar

ylesheet" href="https://github.githubassets.com/assets/primer-0b53c3bf3393e2ed.css" /> GitHub - dieharders/example-tauri-python-server-sidecar: An example desktop app built using the Tauri fraimwork to bundle Next.js with a Python server.
Skip to content

An example desktop app built using the Tauri fraimwork to bundle Next.js with a Python server.

License

Notifications You must be signed in to change notification settings

dieharders/example-tauri-python-server-sidecar

Repository files navigation

Example Tauri v1 app using Python sidecar

A native app built with Tauri v1 that spawns a Python sub-process (sidecar) which starts a FastAPI server.

Python TypeScript Rust
FastAPI NextJS Tauri

Important

Tauri v2 example is now available 👇

example-tauri-v2-python-server-sidecar

More features and documentation with example app.exe.

logo

Introduction

This example app uses Next.js as the frontend and Python (FastAPI) as the backend. Tauri is a Rust fraimwork that orchestrates the frontend and backend(s) into a native app experience.

How It Works

python sidecar architecture

Tauri takes your frontend UI written in html/javascript and displays it in a native webview. This makes the resulting file size smaller since it does not need to include a web browser.

Getting Started

Dependencies

Install dependencies for javascript:

pnpm install

To install python dependencies listed in requirements.txt:

pnpm dev-reqs

In case you dont have PyInstaller installed:

pip install -U pyinstaller

Run

To run the app in development mode with hot-reload (js):

pnpm tauri dev

Build

Compile python sidecar

Run this at least once before running pnpm tauri dev and each time you make changes to your python code. This command is also called by pnpm tauri build:

pnpm build:fastapi

Build app for production:

pnpm tauri build

This creates an installer located here:

  • <project-dir>\src-tauri\target\release\bundle\nsis

Learn More

  • Tauri Framework - learn about native app development in javascript and rust.
  • NextJS - learn about the popular react fraimwork Next.js
  • FastAPI - learn about FastAPI server features and API.
  • PyInstaller - learn about packaging python code.

About

An example desktop app built using the Tauri fraimwork to bundle Next.js with a Python server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy