Make sure to install the dependencies:
# pnpm
pnpm install
Start the development server on http://localhost:3000
pnpm run dev
Build the application for production:
pnpm run build
Locally preview production build:
pnpm run preview
API call to create entry
POST https://cms.fast.com.ph/api/measurements
{
"data": {
"barcode": "YT2318522147003012",
"machine_code": "PAXF-01",
"weight": 1.0,
"length": 1.0,
"width": 1.0,
"height": 1.0,
"request_time": "2023-06-08 15:09:29"
}
}
API call from dimensioner
{
"Barcode": [
"ACK123456"
],
"MachineCode": "NAV-01",
"Weight": 1.2,
"Length": 1.43,
"Width": 2.32,
"Height": 12.57,
"RequestTime": "2023-06-08 15:09:29"
}