@vigneron vigneron authored on 11 May
.husky feat: adding post routes employees\ntest: start test with jest 10 months ago
config docs: openapi for employees 10 months ago
elastic test: add test /employee/:uuid 10 months ago
openapi docs: add basic route example 10 months ago
routes test: add test /employee/:uuid 10 months ago
.dockerignore build: add ignore files 10 months ago
.eslintingore build: add ignore files 10 months ago
.eslintrc.js style: adding eslint jest plugins 10 months ago
.gitignore build: add ignore files 10 months ago
.npmrc build: adding versions files 10 months ago
.nvmrc build: adding versions files 10 months ago
README.md docs: openapi for employees 10 months ago
app.js docs: adding openapi.json file 10 months ago
package-lock.json feat: adding cors 10 months ago
package.json feat: adding cors 10 months ago
server.js feat: adding post routes employees\ntest: start test with jest 10 months ago
README.md

RESEDA API Search

Prerequisites

  • git >= 2.7.0
  • Node.js >= 16
  • npm >= 7.20.0

Installation

$ git clone https://gitbucket.inist.fr/git/METADoRe/reseda-search.git
$ cd ./reseda-search
$ npm install

Production

$ npm run start

Development

$ npm run dev

Tests

$ npm run test

Environment variables

Name Type Description
APP_PORT Integer Application port (default: 3000)
ELASTICSEARCH_SCHEME String URI scheme (default: https)
ELASTICSEARCH_HOST String ElasticSerach host (default: localhost)
ELASTICSEARCH_PORT Integer ElasticSerach port (default: 9200)
ELASTICSEARCH_USERNAME String ElasticSerach host (default: elastic)
ELASTICSEARCH_PASSWORD String ElasticSerach host (default: changeme)
RESEDA_EMPLOYEES_INDEX String Reseda employees index name (default: employees)
RESEDA_STRUCTURES_INDEX String Reseda structures index name (default: structures)
PARAMS_MAX_SIZE Integer Query max size (default: 1000)
PARAMS_DEFAULT_SIZE Integer Query default size ``

(default: 25)| | RESEDA_DOC_URL | String | OpenAPI URL(default: docs)`` |