Leeoku / NPI_FILES

repo to automate NPI file download, extract and load into a database and create an api for endpoint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPI_FILES

repo to automate NPI file download, extract and load into a database and create an api for endpoint

Podman setup in script

work in progress... pod_setup.sh

Local Development for Django

Need to set up postgres, either locally or in a container. The container is my choice as it makes it easier when testing with the containerized django app.

This requirement will have you update the .env.dummy file with appropriate values and rename it to .env so you don't check in any passwords or settings.

These values are references in django's settings.py file

# create virtual environment
python -m venv env
# then activate it
source env/bin/activate
# windows may use this env/Scripts/activate path instead

# install requirements  
pip install -r backend/requirements.txt

# make db migrations 
python backend/manage.py migrate

# launch django
python backend/manage.py runserver 

I suspect you need to create a super user here before run server or soon after.

python manage.py createsuperuser

About

repo to automate NPI file download, extract and load into a database and create an api for endpoint

License:Mozilla Public License 2.0


Languages

Language:Python 89.2%Language:HTML 9.4%Language:TypeScript 0.8%Language:Shell 0.4%Language:Dockerfile 0.1%Language:SCSS 0.0%