Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 861 Bytes

README.md

File metadata and controls

42 lines (33 loc) · 861 Bytes

matching-engine

  • Input: user profile, requirement profiles, datafield constraints, materialization queries
  • Output: a report about eligibilities (yes, no, missing data)

In use in the FörderFunke app.

Local development

# after bumping the @foerderfunke/matching-engine version
npm run build
npm publish
# to run dev.js
npm start

Using this library as dependency

npm install --save @foerderfunke/matching-engine
# package.json
{
  "type": "module",
  "dependencies": {
    "@foerderfunke/matching-engine": "^0.2.0"
  }
}

# dev.js
import { validateUserProfile } from "@foerderfunke/matching-engine"
# ...
let report = await validateUserProfile(userProfileString, datafieldsString)
console.log(report)

# node dev.js