@vigneron vigneron authored on 19 May
.husky build: run lint on commited files 2 months ago
config config: add config for default fields 2 months ago
elastic test: add tests and update mock 2 months ago
lib feat: create api key manager 2 months ago
openapi doc(fix): fixing path params 2 months ago
routes test: add tests and update mock 2 months ago
.dockerignore build: add ignore files 3 months ago
.eslintingore build: add ignore files 3 months ago
.eslintrc.js style: adding eslint jest plugins 3 months ago
.gitignore feat: create api key manager 2 months ago
.npmrc build: adding versions files 3 months ago
.nvmrc build: adding versions files 3 months ago
Dockerfile build: write Dockerfile and docker-compose files 2 months ago
README.md doc: write doc for docker usage 2 months ago
app.js doc: write JSDoc 2 months ago
docker-compose.debug.yml build: write Dockerfile and docker-compose files 2 months ago
docker-compose.yml build: write Dockerfile and docker-compose files 2 months ago
package-lock.json build: add lodash.get and lodash.set depencies 2 months ago
package.json build: add lodash.get and lodash.set depencies 2 months ago
server.js feat: create api key manager 2 months ago
README.md

RESEDA API Search

Prerequisites

Installation

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

Production

$ docker-compose up -d api

Development

$ npm install # Install Node.JS dependencies
$ docker-compose -f docker-compose.debug.yml run --rm elastic chown -R elasticsearch /usr/share/elasticsearch/ # Chown ElasticSearch volume
$ docker-compose -f docker-compose.debug.yml up -d elastic # Run ElasticSearch
$ docker-compose -f docker-compose.debug.yml up -d api # Run API in development mode

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)`` |