# Sample Project

The sample project that installs with the WireBootstrap Query Service is intended to provide a working example of a WireBootstrap application that queries data directly against a database using the query service.

![WireBootstrap Query Service Sample Application](/files/-Mbm6Jgg4-AqzXSx5xxd)

The sample is a single web page that allows inputs to the data source to be entered.  Clicking *Connect* then retrieves a list of tables and views (entities) from the source database.  Selecting one of the entities from a drop down list displays sample data for the entity by executing a `top N` query against the database.

The application is written in pure JavaScript using the WireBootstrap JavaScript framework using ES modules and other modern design patterns. &#x20;

The files needed for this solution are installed in the `\sample` directly off of the WireBootstrap Query Service installation root.

The following is a description of the main application files in the project.&#x20;

| File                | Description                                                       |
| ------------------- | ----------------------------------------------------------------- |
| app.js              | The shared application module serving all pages in an application |
| index.html          | The HTML file for the sample                                      |
| index.controller.js | The code-behind module for the HTML page                          |
| index.data.js       | The data access module for the HTML page                          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wirebootstrap.com/query-service/sample-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
