Code Monkey home page Code Monkey logo

semaphore-test-app's Introduction

example-client Application

This example-client is a demonstration of the CMIS widget within a simple web application.

Description

To demonstrate the CMIS widget, this example-client instantiates a locally deployed CMIS widget. This will reference a WIDGET_APP_URL in which the CMIS is to be deployed. Example configurations are supplied for specifying which Knowledge Model Management(KMM), Classification(DA) and Semantic Integration Service(SIS) endpoints.

Getting Started

Dependencies

  • A deployed/hosted CMIS widget.
  • Node (version 16.14.x) and NPM (version 8.19.x) .

Installing

Install with npm:

$ npm install

Executing

Execute with:

$ npm start

This prompts the start of an express server with live reloading which will be available on "http://localhost:5001" (Edit example-client/config/client.js to change default settings).

Configuration

Config files are stored in config directory:

  • client.js - url, port for example-client app
  • studio.remote.js - SIS, DA, KMM api paths, studio api key for remotely deployed studio
  • studio.cloud.js - SIS, DA, KMM api paths, authentication data for studio in cloud
  • studio.local.js - SIS, DA, KMM api paths, studio api key for local studio deployment
  • widget.js - configuration for widget fields

By default config/studio.local.js configuration file is used. Path to studio config file can be changed in app-cache.js:

const widgetConfig = require("./config/widget.js");
const studioConfig = require("./config/studio.local.js");

Other studio.*.js config files are examples how to configure client app for different studio deployments.

semaphore-test-app's People

Contributors

tcp-bhargav avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.