@singularsystems/neo-integrity-checking
v0.10.4
Published
Integrity checking client
Downloads
7
Keywords
Readme
Neo Integrity checking
The neo-integrity-checking package is the front end client for the neo core integrity checking .net project.
Please refer to that documentation for setting up integrity checkers and exposing the integrity checking controller.
Setup
In your app setup, register the integrity checking module:
import { IntegrityCheckingModule } from '@singularsystems/neo-integrity-checking';
appService.registerModule(IntegrityCheckingModule);
Config
Add the following to your main config model:
import { IIntegrityCheckingConfig } from '@singularsystems/neo-integrity-checking';
public get integrityCheckingConfig(): IIntegrityCheckingConfig {
return {
services: [
{ name: "Transactions", apiPath: this.TransactionsApi.ApiPath },
{ name: "Awards", apiPath: this.AwardsApi.ApiPath }
]
}
}
You must return an array with an entry for each api in your project running the integrity checking service.
Then register the config in your app module:
import { IntegrityCheckingTypes } from '@singularsystems/neo-integrity-checking';
container.bindConfig(IntegrityCheckingTypes.ConfigModel, (c: Config) => c.integrityCheckingConfig);
View
Add the integrity checking view to your routes:
import { IntegrityCheckingView } from '@singularsystems/neo-integrity-checking';
const integrityCheckingRoute = {
name: "Integrity checking",
path: "/integrity-checking",
component: IntegrityCheckingView
};
Add the styles to your app component:
import "@singularsystems/neo-integrity-checking/styles/integrity-checking.scss";