A default app for the Cash Box. Allows the user to enable or disable remote administration.
This is a React-based application that can be installed and run through the Cash Box App Manager. It provides a simple interface for enabling or disabling remote administration features.
- Node.js v20.x or later
- npm
Install dependencies:
npm installTo run the app in development mode with hot-reload:
npm run devThis will start a Vite development server (typically on port 5173). You can access the app at http://localhost:5173.
To build the app for production:
npm run buildThe built files will be in the dist/ directory. This directory contains the static files that will be served by the Cash Box App Manager.
Before publishing, ensure you have:
- Updated the version in
package.json(using semantic versioning) - Built the app:
npm run build - Logged in to npm:
npm login
Then publish:
npm publish --access publicNote: Scoped packages are private by default. Use --access public to make them public so the App Manager can discover and install them.
Once published to npm, the app will automatically appear in the App Store:
- Open the Cash Box App Manager in your browser
- Navigate to the App Store (click "App Store" in the navigation)
- Find "Remote Administration" in the list (it may take a few minutes to appear after publishing)
- Click Install to install the app
- Go to Home to see your installed app
- Click on the app icon to launch it
remote-admin/
├── package.json # npm package configuration
├── app.config.json # App metadata (displayName, icon)
├── vite.config.js # Vite build configuration
├── index.html # HTML entry point
├── src/
│ ├── main.jsx # React entry point
│ └── App.jsx # Main app component
├── public/
│ └── assets/
│ └── icon.png # App icon (64x64 or larger)
└── dist/ # Build output (generated)
├── index.html
└── assets/
The app includes placeholder API integration for fetching and updating remote administration status. The API endpoints are currently commented out in src/App.jsx and should be updated when the backend endpoints are implemented:
- GET
/api/remote-admin/status- Fetch current remote admin status - POST
/api/remote-admin/toggle- Toggle remote admin status
To update the app:
- Make your changes
- Update the version in
package.json(e.g.,1.0.0→1.0.1) - Build the app:
npm run build - Publish:
npm publish --access public - Users can update by uninstalling and reinstalling, or you can implement an update mechanism
- Ensure
"psf-pi-appliance-app"is in thekeywordsarray inpackage.json - Wait a few minutes for npm registry updates
- Verify the package is public (
--access public)
- Ensure all dependencies are installed:
npm install - Check that Node.js version is v20.x or later
- Verify
vite.config.jsis correctly configured
- Verify
dist/index.htmlexists after building - Check that all asset paths are relative (not absolute)
- Review browser console for JavaScript errors
MIT