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.
- 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
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 devfromfleetmanager/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/ - Copy favicon and GLTF files using
just prep-frontfromfleetmanager/frontend/ - Deploy the frontend to Cloudflare using
npx wrangler page deploy dist - Double check
.wasm,.gltf,.glb,.jpgand.pngfiles are under 25MB (for example, should be 2MB compared to 60MB) - Manually copy and paste GLTF files to
dist/ - Manually upload
fleetmanager/frontend/dist/to Cloudflare Pages