Generic reference data service
- Clone this repository:
git clone git@github.com:Navarik/refdata.git
- Clone your reference data repository or get the reference data objects from some other location on the file system:
git clone https://github.com/TICitHub/reference-data-objects.git
or
cp -r /mnt/shared/reference-data-objects reference-data
- Copy reference data into the working directory:
cp -r ./reference-data/schema ./schema
cp -r ./reference-data/data ./data
- Build docker container
docker build .
- Clone this repository:
git clone https://github.com/TICitHub/refdata.git
- Clone your reference data repository or get the reference data objects from some other location on the file system:
git clone https://github.com/TICitHub/reference-data-objects.git
or
cp -r /mnt/shared/reference-data-objects reference-data-objects
- Setup environment variables (or create a .env file)
cd refdata
export SERVICE_PORT=3101
export NODE_ENV=dev
export SCHEMA_LOCATION=../reference-data-objects
export DATA_LOCATION=../reference-data-objects/data
- Install dependencies
npm i
- Run service
npm run standalone