React-UI-Global

Downloads8
Subscribe
0
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues

What's new in this version

  • Implementation Data-model document store

React-UI-Global

This application provides a convenient web interface and REST API application for interacting with globals.

Installation

Docker

The repo is dockerised so you can clone/git pull the repo into any local directory

$ git clone https://github.com/NjekTt/React-UI-Global

Open the terminal in this directory and run:

$ docker-compose up -d

Then open http://localhost:4000/

Online demo http://mareiznode.teccod.com:4001/

Web interface

The web interface allows you to view and create globals. In the web interface, you can generate globals with a given number of lines with random values.

REST API

Routing is used by Flask Framework to process incoming requests. When a request is received using Python Embedded, methods of the ObjectScript class are called and processed

  • [GET] /api/getGlobalData - Returns the elements of the given global. Parameters: name - global name, size - number of global elements (to implement loading and optimization), namespace - namspace where the global is located
  • [POST] /api/generateGlobal - Generates a global with random data. Parameters: globalname - the name of the created global, rowcount - the number of generated elements, namespace - where the global will be created
  • [GET] /api/getRowCountGlobal - Returns the number of global rows. Parameters: name - global name
  • [GET] /api/getAllGlobalList - Returns lists of all globals. Parameters: namespace - namespace where globals are located

Example

image

Form for creating a global

image

Update

Based on globals, the Data-model document store was implemented. This data model stores JSON-like documents

http://localhost:4000/docdb

outputvideo-cutter-jscom-1-min

image

image

Rating
4 (1)
Category
Technology Example
Works with
InterSystems IRIS
Tags
Info
Version
1.0.1
Last updated
2022-04-08
Repository
Open
Documentation
Open
License
Link