Skip to content

breckinridge22/optrak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

optrak

This program represents a proof of concept of a web application that would allow healthcare providers to securely exchange patient opioid prescription information.

Installation Instruction:

  1. Ensure Django is installed on your local machine.
  • $ pip3 install Django
  • $ pip3 install psycopg2
  1. Install pip if you need to update any python libraries.
  2. Clone the repository

Database Setup:

  1. Download and Install Postgresql
  • brew install postgres
  • brew services start postgres
  1. Open a postgres command line tool
  • psql -U postgres
  1. Create a new database called Optrak
  • CREATE DATABASE optrak;
  1. Create a new user doctor with password Optrak
  • CREATE ROLE doctor WITH LOGIN PASSWORD 'optrak';
  1. Grant user all privleges on the table
  • GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO doctor;
  1. Exit postgres
  • control + Z

Run Webapp

  1. Update migrations folder
  • python3 manage.py makemigrations
  1. Update database
  • python3 manage.py migrate
  1. Run app server
  • python3 manage.py runserver
  1. Load in web browser
  • localhost:8000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •