Fleetmanager application for monitoring and controlling robot fleets.
Fleetmanager started out as a simple SQLSync Wrapper. These are instructions for wrapping SQLSync by orbitinghail, and coincidentally for building Fleetmanager.
Make sure all languages build tools are on latest version: rustc, clang, gcc, cargo, npx, wrangler, nodejs, npm. List any other required build tools. Include instructions to install required build tools, and include minimum version in devDependencies.
- Clone SQLSync:
git clone https://github.com/orbitinghail/sqlsync - Run the commands below one at a time:
cd sqlsync
just build
just run-with-prefix 'wasm-'
cd sqlsync/lib/sqlsync-worker
pnpm install @rollup/plugin-node-resolve // need to double check if this is still required
cd sqlsync
just package-sqlsync-worker dev
cd sqlsync/demo/cloudflare-backend
pnpm i
- Clone this repo alongside SQLSync:
git clone https://github.com/jmcmahon443/fleetmanager
├── sqlsync/
└── fleetmanager/
- Deploy backend using
pnpm devfromsqlsync/demo/cloudflare-backend/ - Build and upload reducer to local backend using
just upload-reducerfromfleetmanager/ - Build and deploy frontend using
pnpm i; pnpm dev --hostfromfleetmanager/frontend/
These are instructions for deploying to Cloudflare.
- Deploy backend using
npx wrangler deployfromsqlsync/demo/cloudflare-backend/ - Upload reducer to remote backend using
just upload-reducer remotefromfleetmanager/
- Build the frontend distribution using
npx vite buildfromfleetmanager/frontend/
- Double check
.wasm,.gltf,.glb,.jpgand.pngfiles are under 25MB (for example, should be 2MB compared to 60MB) - Manually copy and paste Favicon and GLTF folders to
dist/ - Deploy the frontend to Cloudflare using
npx wrangler pages deploy distfromfleetmanager/frontend/