https://github.com/codekie/litenet_mockserver
Mockserver for the Litenet-controller CLI
https://github.com/codekie/litenet_mockserver
rust svelte tauri-app
Last synced: about 1 month ago
JSON representation
Mockserver for the Litenet-controller CLI
- Host: GitHub
- URL: https://github.com/codekie/litenet_mockserver
- Owner: codekie
- Created: 2022-08-31T15:16:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-06T11:34:28.000Z (over 3 years ago)
- Last Synced: 2025-06-25T03:04:51.508Z (11 months ago)
- Topics: rust, svelte, tauri-app
- Language: Rust
- Homepage:
- Size: 675 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.

## Requirements
- Node.js >= 16
- Rust >= 1.62
## Run the server
This is a [Tauri](https://tauri.app/) app. To run the server in dev-mode, run following command:
```sh
npm run tauri dev
```
## Build the app
To build an OS-native app, run following command:
```sh
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](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer).