Path: blob/master/gate-controller/README.md
1072 views
GateController
GateController takes API from an external source and triggers a gate's dry contact to open.
About The Project
This application is built using a modern stack that combines a Rust backend with a web-based frontend.
Frontend: Next.js (React) with TypeScript
UI: shadcn/ui & Tailwind CSS
Package Manager: Bun
Prerequisites
Before you begin, ensure you have the following installed on your system.
Rust: You need the Rust programming language and its toolchain (Cargo). You can install it via rustup.
Node.js: Required for the frontend environment. Download it from nodejs.org.
Bun: This project uses Bun as the package manager. Install it from bun.sh.
Tauri System Dependencies: Tauri has specific system dependencies for building applications. Please follow the official guide for your operating system:
Getting Started (Development)
To get a local copy up and running for development, follow these steps.
Clone the repository:
Install Frontend Dependencies: This command will install all the necessary Node.js packages defined in
package.json.Run in Development Mode: This command starts the Next.js development server and the Tauri application in a single process with hot-reloading.
Build and Production
To create a final, distributable application for your platform, follow these steps.
Build the Application: This command bundles the frontend and compiles the Rust backend into a single executable.
Locate the Executable: Once the build is complete, you can find the application executable (e.g.,
.exeon Windows) inside thesrc-tauri/target/release/directory.