Production Run PWA is an Ionic Vue application for Apache OFBiz production run workflows.
Licensed under the Apache License, Version 2.0.
It provides a mobile-friendly interface for:
- signing in against OFBiz-authenticated APIs
- finding production runs
- creating production runs
- viewing production run details, tasks, materials, and notes
- Ionic Vue 8
- Vue 3
- Vue Router
- Vite
- TypeScript
Contributors should have:
- Node.js
- npm
- access to an Apache OFBiz environment, either:
- running locally
- or hosted remotely
Notes:
- You do not need to install Vue globally.
- You do not need to install Vite globally.
- Project dependencies are installed locally with
npm install.
The app talks to Apache OFBiz REST APIs.
Current production run flows use:
GET /production-runsGET /production-runs/:idPOST /production-runs
Authentication uses:
POST /auth/tokenPOST /auth/refresh-token
The API base URL is configured in:
src/services/apiConfig.ts
By default, the frontend uses:
/rest
The UI currently aligns to these OFBiz production run statuses:
PRUN_CREATEDPRUN_SCHEDULEDPRUN_DOC_PRINTEDPRUN_RUNNINGPRUN_DOC_COMPLETEDPRUN_CLOSEDPRUN_CANCELLED
The find-screen status options are defined in:
src/constants/productionRunStatuses.ts
/login/production-runs/production-runs/create/production-runs/:productionRunId
Routing and auth guards live in:
src/router/index.ts
Install dependencies:
npm installStart the development server:
npm run devThis starts the Vite dev server for the Ionic Vue app.
Create a production build:
npm run buildThe build output is written to:
dist/
dist/ is generated output and should not be treated as source code.
Preview the built app locally:
npm run previewThis is useful for checking the production bundle locally after a build.
During local development, Vite proxies /rest requests to OFBiz.
You can use either:
- a locally running OFBiz instance
- a hosted OFBiz environment
Default development proxy target in code:
https://localhost:8443
Override it with:
VITE_OFBIZ_PROXY_TARGET
Where to change it:
- update
VITE_OFBIZ_PROXY_TARGETwhen starting the app - or change the default fallback in
vite.config.tsif the repo-wide default should be different
Examples:
# Local OFBiz
VITE_OFBIZ_PROXY_TARGET=https://localhost:8443 npm run dev
# Hosted OFBiz
VITE_OFBIZ_PROXY_TARGET=https://example-ofbiz-host/rest-proxy-target npm run devProxy configuration lives in:
vite.config.ts
src/pages- route-level screens such as login, find, create, and detail
src/components- reusable production run and shared UI components
src/services- API, auth, and production run service logic
src/constants- shared constants such as production run statuses
src/theme- shared app/theme CSS
src/types- TypeScript domain and API types
- The app keeps auth state in memory in the current implementation.
node_modules/anddist/are generated artifacts and should not be treated as source.- The project uses
vite.config.ts,tsconfig.json, andpackage.jsonas normal source/config files.