In this tutorial, we’ll be writing an example of the server-side part of the app which will use UIKernel.
We are going to use Node.js, Express and MySql.
Our app will have the following structure:
First, we’ll define packages in package.json.
package.json:
To install them, we’ll need to run npm i from the command line.
Next, let’s configure the server.
server.js:
In the next section of the tutorial, we’ll define routes for our app.
The client-side part of the app is similar to the one described in the previous part of the tutorial,
the only difference is that the data model on the client-side part will be an instance of UIKernel.Models.Grid.Xhr
instead of UIKernel.Models.Grid.Collection, so that the client-side part will fetch grid data and synchronize it
with the server’s model: