Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.38 KB

readme.md

File metadata and controls

51 lines (36 loc) · 1.38 KB

qxapp

qxapp is a Qooxdoo front-end, demo application that illustrates how Qooxdoo and Inertia.js work together.

The back-end application is Ping CRM.

Installation

To get it working on a local instance:

  1. Setup Ping CRM
  2. Add a new folder named qxapp to the resources folder
  3. Add this application to the new qxapp folder
  4. Locally install the qooxdoo framework
  5. 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>
  1. Compile the qxapp application
npx qx compile --watch
  1. 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);