ES6/TypeScript library implementation of the Mixed Reality Service (MRS).
Based on the third draft of the MRS specification.
- Can a search operation be authenticated? (for example to return ServicePoint if FOAD == true & authenticated)
- Does range in a search operation take elevation into account?
- What search fields are required/optional?
- Core MRS logic
- Datatype conversion (JSON to/from strongly typed TS)
- Communication with distributed ledger via driver plugins
- Authentication of add/delete requests (TODO)
- Local cache (based on MongoDB) for fast search requests (TODO)
- An actual endpoint you can make requests to (TODO: example app)
- A distributed ledger (Openchain, Hyperledger etc.)
TODO: Publish to NPM
npm install mixed-reality-service --save
const MixedRealityService = require('mixed-reality-service');
const AddRequest = require('mixed-reality-service/models/add-request');
const OpenchainDriver = require('mixed-reality-service/services/drivers/openchain');
const ledgerDriver = new OpenchainDriver('https://openchain.server:8080/');
const mrs = new MixedRealityService(ledgerDriver);
mrs.add(AddRequest.deserialise(someJson));
Includes TypeScript definitions, so the following should work:
import { MixedRealityService, OpenchainDriver, AddRequest } from 'mixed-reality-service';
const ledgerDriver = new OpenchainDriver('https://openchain.server:8080/');
const mrs = new MixedRealityService(ledgerDriver);
mrs.add(AddRequest.deserialise(someJson));
- Prerequisites
- Node/Yarn
- Ledger
- Cache DB
- Building
- Source
- Docs
- npm link etc.
- Code style etc.
- Testing/linting
- Gitflow