Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 2.93 KB

readme.md

File metadata and controls

73 lines (50 loc) · 2.93 KB

Flexmonster custom data source API server

Flexmonster Pivot Table & Charts Website: www.flexmonster.com

Flexmonster Pivot Table & Charts

Flexmonster Pivot is a powerful JavaScript tool for interactive web reporting. It allows you to visualize and analyze data from JSON, CSV, SQL, NoSQL, Elasticsearch, and OLAP data sources quickly and conveniently. Flexmonster is designed to integrate seamlessly with any client-side framework and can be easily embedded into your application.

This repository holds the source code for sample servers that demonstrate how to implement the custom data source API.

The custom data source API is a communication protocol designed to retrieve aggregated data from a server to Flexmonster Pivot. The server is responsible for fetching, processing, and aggregating data, which is then passed to Flexmonster in a ready-to-show format.

Table of contents:

Prerequisites

For the sample Node.js server:

For the sample .NET Core server:

Installation

  1. Download a .zip archive with the sample project or clone it from GitHub with the following command:
git clone https://github.com/flexmonster/api-data-source.git && cd api-data-source
  1. Run the project in one of the following ways:

    • To start the sample Node.js server:
    cd server-nodejs
    npm install
    npm start
    
    • To start the sample .NET Core server:
    cd server-dotnetcore
    dotnet restore
    dotnet run
    

Tests

If needed, you can check a custom data source API server with our test suite. Run the tests with the following commands:

 cd tests
 npm install
 npm test

Note that these tests will work only if one of the sample servers is running. To learn how your server can be tested, see our documentation.

Related Flexmonster docs

For details on usage, refer to our documentation: