Skip to content

codekie/litenet_mockserver

Repository files navigation

litenet_mockserver

This is a mockserver for the Litenet-controller CLI. It provides a local webserver to which the requests of the Litenet-controller can be sent to. The state of the luminaires (on / off / dimmed) are reflected in the GUI.

The webserver listens to the port 8000 by default.

Example GUI

Requirements

  • Node.js >= 16
  • Rust >= 1.62

Run the server

This is a Tauri app. To run the server in dev-mode, run following command:

npm run tauri dev

Build the app

To build an OS-native app, run following command:

npm run tauri build

Technologies used

  • Tauri (with Svelte, Vite and Rust)

Motivations

  • Create a mockserver to make testing the Litenet-controller CLI easier
  • Practice Rust
  • Try Tauri

Recommended IDE Setup

VS Code + Svelte + Tauri + rust-analyzer.

About

Mockserver for the Litenet-controller CLI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published