Loading data with Airflow
Querying the database
Finding tables in pgAdmin
How SageRx works
Show me the data
A guide to installing SageRx locally.
- Install Docker.
- Windows users will also install WSL 2 (a Linux subsystem that runs on Windows) as part of this process.
- Clone the repo.
git clone https://github.com/coderxio/sagerx.git
- Add a
.envfile at the root of the repo.
- Add ENV vars to the
AIRFLOW_UID=<uid>- UID can be found by running
id -uon linux systems, typically the first user on the system is
- Windows users following the Docker Desktop install guide should have WSL 2 installed. You can open up command line, type
wsland then within WSL 2, you can enter
id -uto see your UID.
UMLS_API=<umls_api_key>- (optional) if you want to use RxNorm, you need an API key from UMLS.
docker-compose up airflow-initand wait until exit code 0.
Make sure docker is installed. See prerequisites section above.
docker-compose up airflow-init
NOTE: if you have an M1 Mac export DOCKER_DEFAULT_PLATFORM=linux/amd64, and re-build your images