This is currently just a stub to start a discussion between ALA and GBIF
Use node 16.14.2. You probably want to install NVM (Node Version Manager) if you haven't already.
Run in dev (watch using nodemon) with npm start
. You will need an .env file (YAML) with
port: 4000
# this section isn't used currently, but ES specific configurations could go here
event:
hosts: [http://node1.elasticsearch:9200/, http://node2.elasticsearch:9200/] # whatever your es nodes are called
requestTimeout: 60000
maxRetries: 3
maxResultWindow: 100000
index: event
debug: true # this enables extra logging and error details in responses. Should not be used in production.
run with node src/index.js
Code is formatted with default settings of Prettier - Visual studio plugin
Linting via eslint