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