Skip to content

2021 Developer Startup Guide (WIP)

Tom Rau edited this page Jun 5, 2021 · 9 revisions

Quickstart

###Download Repo ###Install Global Dependencies ###Add .env vars to .env at / ###Add .env vars to .env at /front/.env (update later - docker, node, etc) ###Docker-compose build ###Docker-compose up ###cd front ###yarn ###yarn start (should serve front-end app at localhost://3000

##Back Up DB instructions (docker needs to be running to connect to clinwiki-db container) ##Run Docker cp <file> clinwiki-db:/ docker exec -it clinwiki-db psql -U clinwiki clinwiki -f <file>

##IMPORT hasura_metadata file in local hasura console.

(need to still solidify which db is backup, which metadata will correctly match relationships and schema)

###Helpful commands for reindexing using old (but working mappings locally)

Either

1a. Uncomment out clinwiki container and then docker-compose build

or 1b. Switch to Master and add ‘gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f’’ to end of GEMFILE (we should probably create a reindexing branch and commit this, if we plan on using old mapping prior to next elastic version, it's a pain in the ass, but it's this or maybe throwing a few hours at fighting with new mapping created by elastic) 2. Docker exec -it rails c 3. Study.reindex 4.. Switch back to develop or your local branch and re run docker-compose build (this is the unfortunatel part of this process and then proceed normally)

For backend development

(when you don't want to wait for docker-compose build)

comment out data-pipeline and nodejs containers and run data-pipeline and node outside of docker via npm start and npm run start data-pipeline scripts

Clone this wiki locally