The frontend client is built with Tauri + React + Typescript
To build the frontend client, follow these steps:
- Setup Development Environment
- Install Tauri pre requisites
- Install local pre-requisites
cd superbuilderclient npm install - Install mui/material for React.Js
- Follow this link guide
- Install Protoc. There are two options:
- You can follow the instructions from here
- If you are running on a Windows based machine, you only have this option:
- Go to the latest release and download the binary
- Add this environment variable
PROTOC=\path\to\protoc-<ver>-win64\bin\protoc.exe
- Build Service (Middleware) proto
- Tauri will automatically build the proto contract files when you run dev or build mode. The definition is in the
build.rsfile. - Inside
build.rs, it goes to the a shared folder looking forsuperbuilder_middleware.proto.
- Tauri will automatically build the proto contract files when you run dev or build mode. The definition is in the
- To run the application locally, run
npm run tauri dev - To build the application locally, run
npm run tauri build
Some icons are rendered using SVG files. An easy way to change the color of an SVG icon is to use a hexadecimal color to CSS filter converter. https://isotropic.co/tool/hex-color-to-css-filter/ , using this you can apply a css style to the svg component to alter the color. (You may need to manually adjust brightness of the output filter to get the desired results)
To configure Bug report support email account you can either directly set that in the code or set an environment variable. For Windows system,
- Open System Properties (Win + R, type sysdm.cpl)
- Click "Environment Variables"
- Under "System variables", click "New"
- Set Variable name: VITE_AAB_SUPPORT_EMAIL
- Set Variable value: your-support@company.com
- Click OK