Installing Query

To start working with Query you need to take the following steps:

  1. Link the necessary CSS/JS files to the page;
  2. Call the object constructor.

Files to include

There are 4 files to include:

Files to work with Query

<!-- js files -->
<script src="codebase/webix.js" type="text/javascript"></script>
<script type="text/javascript" src="codebase/query.js"></script>
<!-- css files -->
<link rel="stylesheet" href="codebase/webix.css" type="text/css">
<link rel="stylesheet" type="text/css" href="codebase/query.css" />

See the next chapter to learn how to create Query on a page.

Starting a Backend Server

We provide backend code for Query with SQL generation inside.

Using NodeJS Backend

To get the NodeJS backend for Query clone the repo, configure DB connection and provided DB dump (dump.sql). After that run the code as:

npm install
node index.js

Using Golang Backend

To get the Golang backend for Query, clone the repo, configure DB connection and provided DB dump (dump.sql). After that run the code as:

go build
 
./query

Running Package Samples Locally

To run package samples on a local machine you should navigate to the Query root folder, install the necessary dependencies and start a development server as:

// navigate to the root folder
cd query
 
// install dependencies
yarn install //or npm install
 
// start dev server
yarn server //or npm run server
Back to top