GithubHelp home page GithubHelp logo

crazyflie-client-tauri's Introduction

Crazyflie Tauri client

This client is test to see if it's feasible to write a Crazyflie client using Tauri. The idea is to do most of the heaving lifting in the Rust backend and only use the React frontend as a GUI library, just rendering well formatted data from the backend and accepting user input.

Setup

Clone, install the requirements and run the client:

git clone https://github.com/evoggy/crazyflie-client-tauri.git
cd crazyflie-client-tauri
npm run tauri dev

Development

Frontend

The frontend uses React, Bootstrap and TypeScript. It supports hot reloading, so for every change in the code the application will load it without the need to restart the client.

New dependencies can be added by running npm install <package> from the main directory.

Backend

The backend uses Rust and the crazyflie-lib-rs. Just like the frontend, the backend also support reloading but has to compile between changes. New dependencies can be added by entering the src-tauri directory and running cargo add <package>.

Generating shared datastructures

For sending data asynchronously between the frontend and the backend various datastructures are used. These are defined in Rust and the TypeScript equivalent is generated using ts-rs. To generate the TypeScript definitions you need to run:

cd src-tauri
cargo test export_bindings

This will export the bindings to the file src/backend-interface.ts.

crazyflie-client-tauri's People

Contributors

evoggy 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.