Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Latest commit

 

History

History
81 lines (51 loc) · 3.52 KB

README.md

File metadata and controls

81 lines (51 loc) · 3.52 KB

reTHINK Service Framework

DEPRECATED!! Service Framework libs have been move to Runtime Core

Build status

Master Develop
Build Status Build Status

Service Framework Overview

This repository contains the source code of libraries that are used to facilitate the development of Hyperties and Protostubs.

  • Hyperty is a secure user associated microservice, which can be deployed either on a web runtime environment, on an end-user device or on a networked server.

  • Protostubs are implementations of protocol stacks that are dynamicaly loaded by the Hyperty Runtime to support adhoc cross domain interoperbility among Hyperties without the need of federation or standardisation of network protocols.

In case you want want to know more details about reTHINK, have a look here.

How to include libraries from this repository in other software components, like Hyperties, Protostubs, dev-runtime-browser, dev-runtime-node or dev-runtime-core;

npm install

To import the dev-service-framework modules:

// This is the default class exported;
import CatalogueFactory from 'service-framework/dist/CatalogueFactory';

// This is the other classes exported
import {HypertyDescriptor, ProtocolStubDescriptor, SourcePackage} from 'service-framework/dist/CatalogueFactory';

// or
import MessageFactory from 'service-framework/dist/MessageFactory';

// or
import {Syncher, DataObjectReporter, DataObjectObserver} from 'service-framework/dist/Syncher';

Old Way - Deprecated!!!

Another way to import classes from the Service Framework that will be only supported until the runtime-core and other repositories are update to the "new way":

import {Syncher, MessageFactory} from 'service-framework';

console.log('Syncher: ', Syncher);
console.log('MessageFactory: ', MessageFactory);

If you have problems with the npm install service framework module, you should check Github Help. and select the operation system you are using.

npm test # start the karma tests
npm run test:lint # check the code if respect the codestyle
npm run build:doc # generate/update documentation
npm run build:dev # build the service framework modules into bundles to be used on development environment
npm run build:prod # build the service framework modules into bundles to be used on production environment

In order to try speed up the instalation process, we remove the first verification of global modules, so, if you want install this repository, you should install globaly this modules:

npm install -g karma-cli gulp-cli browserify