Giter Site home page Giter Site logo

taylordeatri / kgrid-activator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kgrid/kgrid-activator

0.0 0.0 0.0 34.58 MB

Knowledge Grid component for activating knowledge objects using plugable adapters

Home Page: https://activator.kgrid.org

Shell 2.57% Dockerfile 0.32% JavaScript 34.54% Java 62.49% Python 0.08%

kgrid-activator's Introduction

KGrid Activator

CircleCI GitHub release

Overview

As a key component of Knowledge Grid, an activator allows knowledge objects to be executable against collected data.

More information on using Knowledge Objects in the Activator and integration with other systems can be found here: Getting Started with the KGrid Activator.

To download the latest releases and sample Knowledge Object collections: Latest Activator release

Table of Contents

  1. Build and Test Activator
  2. Deploy Activator
  3. Release Activator
  4. Docker Activator

Build Activator

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

For building and running the application you need:

Clone

To get started you can simply clone this repository using git:

git clone https://github.com/kgrid/kgrid-activator.git
cd kgrid-activator

Quick Start

This quick start will run the activator and load two example knowledge objects for testing. This objects are located in the shelf directory at the root of the project. By default application will start up and PORT 8080.

mvn clean package
java -jar target/kgrid-activator*.jar

You can load sample KO shelf (where to look for the KOs)

java -jar target/kgrid-activator*.jar --kgrid.shelf.cdostore.url:filesystem:file://etc/shelf

Alternatively you can use the Spring Boot Maven plugin like so:

mvn clean spring-boot:run

Once Running access the Activators Health Endpoint. All statuses reported should be UP

"status": "UP",
    "shelf": {
        "status": "UP",
    
    ...
    
    "activationService": {
            "status": "UP",
    
    ...
    
   "diskSpace": {
           "status": "UP",     

Auto-Reload

The activator will detect when a file in the shelf directory or in a knowledge object in the shelf directory has been added, changed or removed and reload the available objects in the activator. This allows a user to add or remove knowledge objects or versions of knowledge objects and have them be ready for activation without needing to reload the shelf manually.

Running the tests

Automated tests

Unit and Integration tests can be executed via

mvn clean test
mvn clean verify

End to End Testing

Sample shelf in place the following tests can be executed against the running activator

View a Knowledge Object

curl http://localhost:8080/hello/world

View a Knowledge Object Version

curl http://localhost:8080/hello/world/v0.0.1

Run the welcome endpoint on the 99999/newko/v0.0.1 knowledge object

curl -X POST -H "Content-Type:application/json"  -d "{\"name\": \"Fred Flintstone\"}" http://localhost:8080/hello/world/v0.0.1/welcome

Deploy Activator

Please see the KGrid Org Activator site for details

Release Activator

Please see the Kgrid Config repository for details

Publish Documentation

Running Local Dev Docs Publish

npm install
npm run docs:dev

Build dist directory ready for publish

npm run docs:build`

CircleCi publishes the documentation using VuePress and the .circleci/vuepress_deploy.sh script. The gh-pages branch is used for the publishing process and setup in the GitHub repository's GitHub Pages.

kgrid-activator's People

Contributors

ngittlen avatar pboisver avatar kgrid-developers avatar farrisg avatar gregfarris avatar gqmeng avatar grosscol 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.