- cd franken_api
- python setup.py install
- pip install -r requirements.txt
- pip install .
- franken_api -p 8090
- Run DB Migration script:
sudo docker exec -it probio_ui_docker_postgress_1 bash
su postgres
psql
CREATE USER referral_writer WITH ENCRYPTED PASSWORD '<password: this should match with password in flask app settings.py>';
CREATE DATABASE referrals;
CREATE DATABASE curation;
GRANT ALL PRIVILEGES ON DATABASE referrals TO referral_writer;
GRANT ALL PRIVILEGES ON DATABASE curation TO referral_writer;
exit
python franken_api/migrate.py db init --multidb
python franken_api/migrate.py db migrate
python franken_api/migrate.py db upgrade
- cd franken_api/genomic_profile_lookup/
- python read_curation_info_store_postgresql_final.py '<nfs-autoseq-path>' '<project-name>
export MTBP_SCRIPT_PATH="<MTBP_Script_path>"