This is the archived repository for GCS User Interface/Database. Our teams have moved onto a new repository.
The GCS User Interface for the NGCP project.
This project uses Tauri, Bun, and Vue 3.
Clone the repository.
git clone https://github.com/ngcp-project/gcs-user-interface.gitInstall dependencies.
bun installRun the application.
- NOTE: Ensure PostGreSQL and RabbitMQ images need to be running, along with ONLY the Map server container (bun run osm:run)
- Simply running docker-compose up will run all containers and cause the map server to fail.
bun tauriInstall Flask and opencv-python dependencies.
pip install flaskpip install opencv-pythonInstall pyinstaller, this will be used to compile the .py file into a binary.
pip install pyinstallerAdd binary to Tauri config so it is bundled with the build.
In src-tauri/tauri.conf.json, add "binaries/opencv" within the [] of "externalBin": [].
Create binary from opencv.py
pyinstaller --onefile .\src-tauri\opencv.py --distpath .\src-tauri\binaries\Ensure theopencv binary is in the dist folder. If needed move this into binaries folder (if there is already a file, replace it).
Run a Node.js script to rename the binary file, as you must add your architecture to the file name.
bun run target:tripleNow the FPV camera server should run with bun tauri dev. It takes time for it to spin up and once it does, make sure you refresh the camera window.
Ensure Docker is running then install the docker container. Note only update
bun run osm:setupRun the Map Server container.
bun run osm:rundocker-compose up db
docker-compose up rabbitmq
- If you get an error "Error: role renderer already exists" when running the map server, go into Docker Desktop and delete the volume installed. Re-run the setup command to install the volume again.