This is a mono-repo containing the HCMI Portal UI, CMS server, and Arranger API server.
To work on this project, running the UI, CMS, and API on a local device, make sure your device has the listed dependencies and then follow the steps in the Configuration, Migrations, and Quickstart sections.
- Elasticsearch - Needs to be installed and running on the default port (9200)
- MongoDB - Does not need to be installed locally, but if not local update all config file references to mongo location.
First time setup will require variants being loaded into mongo via a migration in the cms/variant-migrations folder. Migrations require the global installation of the migrate-mongo package, npm i -g migrate-mongo. for more information visit https://www.npmjs.com/package/migrate-mongo.
To run the required migrations:
cd cms/variant-migrations
migrate-mongo up -f config.js
# install
make
# start api
PORT=<> yarn api
# start ui
SKIP_PREFLIGHT_CHECK=true yarn ui
# example api prod start command
ES_URL=http://es.hcmi.cancercollaboratory.org:9200 cd api && pm2 start npm --name api -- run start
# Print elasticsearch mapping
yarn mapping <data_model> --name model
# Create and populate elasticsearch index from mapping
# --host defaults to localhost:9200
yarn fake <data_model> --length 10000 --index model --type model --host <es_uri>
https://wiki.oicr.on.ca/display/HCMI/HCMI+Spec+Guide
- @arranger/server (ships with express, socket.io)