Skip to content

chrisjohn727/sample

Repository files navigation

Welcome to Kognifai Application Framework. This repository guides you to create your first Poseidon Module, Widget, a Kognifai (Yeoman) application and samples for each of them.

Widget
Creating a widget - This helps you to create your first widget
Applying a Widget - this indicates

| Main Headings | | Main Headings | | --- | | --- |

Create Your First Module

Creating Kognifai application has its own specifications as it is the same case with any other platforms. Application Framework provides a Visual Studio project template to create the basic artefacts required by Kognifai.

Also, we assume that you are currently running a development instance of Kognifai and have already completed the neccessary steps to run this instance.

Install

To install and configure Kognifai Application Framework, refer to:

QuickStart

Building your First Kognifai App

You can start building your first Koginifai App by using Yeoman, a scaffolding app. Yeoman app helps you to create the templates for your application. This article provides simple steps on how to use the Yeoman app and the sample codes to jump-start your application development.

What will you get

After creating an empty kognifai application framework App based on the Yeoman template, you will get the following solution structure:

  • HelloPoseidon.manifest.json

    The manifest file is used by the Poseidon Module Installer to register the new module in the DB.

    sample HelloPoseidon.manifest.json code

  • HelloPoseidon.module.ts

    In this file the root Angular module for the application is registered. Also some additional configuration can be performed, e.g. creating a state, registering the app in the ‘navigationService’, etc.

    sample HelloPoseidon.module.ts code

  • mainView.html

    This is the main view of the new application. You can compose your content inside.

    sample mainView.html code

  • Web.config

  • Locale-en.ts

    This file is responsible to store localization of the application. If localization is not a requirement it can be removed.

  • install-module.cmd

    This file simplifies the registration of the module in kognifai Application Framework.

  • uninstall-module.cmd

    This file simplifies the uninstallation of the module in kognifai Application Framework.

Create Sample Poseidon Instrument

The successfull creation of an empty Poseidon Instruments Package results a sample instrument package structure that can be populated with instruments such as dashboard instruments. This article provides a sample code for a platform instrument that you can use to jump-start your development.

Sample Widget Package

The newly created sample Widgets Package project is the developer’s entry point for creating a new widget. User defined widgets are stored in the widgets project folder.

Sample Poseidon instrument

Quick Start

Basic use

License

Click here for Demo [Click here for Demo

[Kognifai <a href="http://www.youtube.com/watch?v=DgXdvI-Bm_M

IMAGE ALT TEXT HERE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published