Giter Site home page Giter Site logo

semanej / iris-interoperability-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intersystems-community/iris-interoperability-template

0.0 1.0 0.0 43 KB

InterSystems IRIS interoperability template: a simple interoperability application which reads data from Reddit and filters it.

License: MIT License

Dockerfile 6.49% ObjectScript 93.51%

iris-interoperability-template's Introduction

iris-interoperability-template

This is a template of InterSystems IRIS Interoperability solution. It contains a simple interoperablity solution which reads data from Reddit, filters it and outputs into file or sends via email.

What The Sample Does

This sample has an interoperability production with an inbound Reddit Adapter which is used by a Business Service to read data from Reddit.com. It reads from reddit.com/new/.json every 15 sec. You can alter both the URL and frequency in the service's settings. Screenshot 2020-10-29 at 19 33 14

The production has business pocess with the rule which fiters news which contains mentions of cats and dogs and sends this data into business operation which either saves into source folder /output/Dog.txt or /output/Cat.txt. Screenshot 2020-10-29 at 19 38 58

Prerequisites

Make sure you have git and Docker desktop installed.

Installation: ZPM

Open IRIS Namespace with Interoperability Enabled. Open Terminal and call: USER>zpm "install interoperability-sample"

Installation: Docker

Clone/git pull the repo into any local directory

$ git clone https://github.com/intersystems-community/iris-interoperability-template.git

Open the terminal in this directory and run:

$ docker-compose build
  1. Run the IRIS container with your project:
$ docker-compose up -d

How to Run the Sample

Open the production and start it. It will start gathering news from reddit.com/new/ and filter it on cats and dogs into /output/Dog.txt or /output/Cat.txt files.

You can alter the business rule to filter for different words, or to use an email operation to send posts via email. Screenshot 2020-10-29 at 20 05 34

How to alter the template

Use the green "Use this template" button on Github to copy files into a new repository and build a new IRIS interoperability solution using this one as an example.

This repository is ready to code in VSCode with ObjectScript plugin. Install VSCode, Docker and ObjectScript plugin and open the folder in VSCode.

Use handy VSCode menu to access production and business rule editor and run a terminal: Screenshot 2020-10-29 at 20 15 56

iris-interoperability-template's People

Contributors

evshvarov avatar

Watchers

James Cloos 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.