This guide explains how to set up and run the Patient Records Information application built with Tauri, Vite, and Node.js.
Before you can run or develop this project, make sure you have the following installed:
- Download and install from Node.js Official Website.
- Verify installation:
node -v npm -v
- Install Rust using rustup.
- After installation, check:
rustc --version cargo --version
- Install Microsoft Visual Studio C++ Build Tools.
- Ensure you have the Windows 10 SDK installed.
- Install Xcode from the App Store.
- Run:
xcode-select --install
sudo apt update
sudo apt install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelfIf you want to create this project from scratch, follow these steps:
-
Use the Tauri app generator:
npm create tauri-app
-
It will ask you some questions:
- Project name → choose a name (e.g.,
patient-records-information). - Package manager → choose npm (or yarn/pnpm if you prefer).
- Frontend framework → select React, Vue, Svelte, or Vanilla (for this project: React + Vite).
- Typescript → yes or no depending on your preference.
- Project name → choose a name (e.g.,
-
Move into the project folder:
cd patient-records-information -
Install dependencies:
npm install
-
Run in development mode:
npm run tauri dev
-
To build the application (creates an installer/binary):
npm run tauri build
If you already have the project from GitHub, you don’t need to create a new Tauri app. Instead:
-
Clone the repository:
git clone https://github.com/Alaric-Jeff/Records_Information.git
-
Navigate into the project:
cd patient-records-information -
Install dependencies:
npm install
-
Run in development mode:
npm run tauri dev
-
Build production app:
npm run tauri build
- The
src-taurifolder contains the Rust backend for Tauri. - The
srcfolder contains the frontend code (React/Vite). - You must have both Node.js and Rust installed, otherwise the build will fail.
- For troubleshooting, see Tauri Docs.
# Development
npm run tauri dev
# Production build
npm run tauri build