- https://open.fda.gov/apis/drug/ndc/download/
- Unzip and rename 'drug-ndc.json'
- Place JSON file in ./data/ folder
- Clone repo
- Enter repo:
cd OpenFDA
- Create virtual environment:
python3 -m venv ./venv
- Enter venv:
source venv/bin/activate
- Install requirements:
pip3 install -r requirements.txt
- Run DB loader:
python app/load_data.py
- Run Cherrypy server:
python app/serve_data.py
- First run to load DB:
docker-compose up --build
- Once DB created:
docker-compose -f docker-compose.prod.yml up --build
- Destroy entire build, including DB:
docker-compose down -v