0.0.10 • Published 4 years ago

hoodie-plugin-scampi-nlp v0.0.10

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 years ago

hoodie-plugin-scampi-nlp

Hoodie plugin for the Scampi App utilising NLP techniques including the activity matcher. This app is build with Hoodie. Find out more on docs.hood.ie

Setup

git clone git@bitbucket.org:kzachos/scampi-nlp.git
cd scampi-nlp
npm install
npm start

Updates

1. Updating Activity JSON

  1. Add new json file to folder called /hoodie

  2. In es-api.jschange var inputfile = require("./ActivityJSONvVERSIONNUMBER.json"); to name of latest version

  3. In terminal, run npm start
  4. In Postman App select post and in body select raw with JSON type. Then enter the following in the body:
{ 
    "description" : "go to church",
    "es_index": "activities"
}

then, do call the following api endpoints:

  • http://localhost:4001/hoodie/scampi-nlp/esDeleteIndex
  • http://localhost:4001/hoodie/scampi-nlp/esCreateIndex
  • http://localhost:4001/hoodie/scampi-nlp/esBulkIndex

Finally, call the following api endpoint to test the new acitivity list is up-to-date

  • http://localhost:4001/hoodie/scampi-nlp/esSearch (change the description text to whatever you want to test)

2. Updating published NPM module

  1. In package.json increment version number at attribute called e.g. from “version": "0.0.5" to “version": "0.0.6"
  2. (Might need to run npm login if not already logged in)
  3. Run npm publish to publish the new version to NPM

3. Updating scampi-app

  1. Go to scampi-app
  2. Run npm install --save hoodie-plugin-scampi-nlp@0.0.6
0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago