1.0.1 • Published 6 years ago

ticithub-refdata-api v1.0.1

Weekly downloads
3
License
Apache 2.0
Repository
github
Last release
6 years ago

Refdata

Generic reference data service

Runnig as a docker container

  1. Clone this repository:
git clone git@github.com:TICitHub/refdata.git
  1. 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
  1. Copy reference data into the working directory:
cp -r ./reference-data/schema ./schema
cp -r ./reference-data/data ./data
  1. Build docker container
docker build .

Runnig in development (standalone) mode

  1. Clone this repository:
git clone https://github.com/TICitHub/refdata.git
  1. 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
  1. 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
  1. Install dependencies
npm i
  1. Run service
npm run standalone