Giter Club home page Giter Club logo

groer's Introduction

CASE STUDY

Anytime a doctor accepts things like lunches, gifts, etc. that cost greater than $10 dollars this has to be reported. Below is the site the contains all the data:

https://openpaymentsdata.cms.gov/dataset/General-Payment-Data-Detailed-Dataset-2015-Reporti/8xjh-6p62

Create a web application that imports this data. Make sure that it checks regularly to get the most recent updates. Build a search tool with a typeahead that returns all relevant data. When search results are returned build an export to Excel feature. Make sure that this outputs to an XLS file.

Requirements

Python 3.7 https://www.python.org/downloads/release/python-373/

Django 2.2

Pipenv for a virtual environment https://docs.pipenv.org/en/latest/

Installation

git clone
cd groer
pipenv install
pipenv shell
python3 reorg/manage.py migrate
python3 reorg/manage.py migrate_data
python3 reorg/manage.py runserver

How To

Navigate to the homepage http://127.0.0.1:8000/

Start typing a name, suggestions will appear, then submit

The results are loaded onto the page

Click Export to Excel to download an .xls file.

Setting Up A Cron Schedule

Crontab is not apart of django and would be setup on my local environment (OSX). Type crontab -e into the terminal and paste the below, save and exit.

*/10 * * * * python3 /Users/rory/Documents/repositories/github/groer/reorg/manage.py migrate_data

The above should run the migrate_data custom management command every 10 minutes from the hour (01:10, 01:20 etc).

groer's People

Contributors

rory-ferguson avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.