We have a whole array of different libraies that have been created over the years to support DataEase client, deserver and lately DS 2imply. Under is a list of what they contain and how to install them. Some come as part of budles in other packages.

deserver

This is a library for use creating a web application in a browser, in DataEase service windows, Electron, Tauri or other hybrid application using web technology.

The api is a collection of classes(don't be worried) that that will help you communicate with deserver any version and make your web app interactive.

The easiest way to use it, is to install it as a npm package in your app folder and then use it from there.

Starting with a empty application, you have to go to command line and navigate to the direcory for your application. 

cd \myappfolder
npm init -y
npm install https://download.2imply.com/deserver/deserver-1.0.5.tgz

This will install deserver under node_modules in your app folder. Next step is to load one of the bundles for use as javascript script library. More about that in later chapters.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Load data from server</title>
<script type="text/javascript" src="/node_modues/deserver/dist/deserver.bundle.min.js"></script>
<script type="text/javascript">
let me = new ServerConnect(); me.setupwhere(location.port, `${location.protocol}//${location.hostname}`); // use current server serving this page as deserver
me.ready(() => {
const jdata = me.recordget('Customer', 'ID="101010"');
if (jdata && jdata.result == 'ok')me.html("name", jdata.recorddata.Name);
});
</script>
</head>
<body>
<div class="container-fluid"> <div>Hello <span id="name">stranger</span></div>
</div>
</body>
</html>

This example load the library from node_modules, set up to use deserver serving this html as the one with data and read Customer with ID="101010"'s Name and present it instead of stranger in the browser.

There are a few classes with api and we will document it here as well, but for now here are the generated api documentation.