qxapp is a Qooxdoo front-end, demo application that illustrates how Qooxdoo and Inertia.js work together.
The back-end application is Ping CRM.
To get it working on a local instance:
- Setup Ping CRM
- Add a new folder named qxapp to the resources folder
- Add this application to the new qxapp folder
- Locally install the qooxdoo framework
- Update the app.blade.php blade file (located in resources/views folder) to point to the compiled qxapp applicaition (see example below)
{{-- Qooxdoo --}}
<script type="text/javascript" src="/compiled/source/qxapp/index.js"></script>
@inertiaHead
</head>
<body>
@inertia
</body>
</html>
- Compile the qxapp application
npx qx compile --watch
- Update the compiled commonjs-browserify.js to properly reference inertiajs axios object
- Open the file located in the public/compiled/source/qxapp folder.
- Search the commonjs-browserify.js file for "require("axios")" (there should only be one).
- Add ".default" to the end for it to be "require("axios").default". Below is an illustration:
Important Note: You will have to repeat step 7 after every run of npx qx clean
.
// before
var he = Y(require("axios"), 1);
// after
var he = Y(require("axios").default, 1);