CaptainStabs / PDAP-app

A local app for scraping and submitting data to PDAP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDAP App

A set of tools to help data scrapers collect and submit data.

Getting Started

  1. Clone this repo and cd into the directory
  2. If you're working with DoltHub repos, install them in /databases.

To use the Django app, continue:

  1. Have Python, PIP & virtualenv installed
  2. Create a venv (python -m "venv" ./env)
    • To activate on windows, you will run .\\env\Scripts\activate.ps1 or .\env\Scripts\activate.bat
    • To activate on *nix, . ./venv/bin/activate
  3. In your venv, grab all the requirements: pip install -r requirements.txt
  4. Now you can cd pdap and interact with the manage.py file:
    • python manage.py will show all the available commands
    • python manage.py makemigrations is useful when any of the models.py files are updated (to actually create a migration to sync to DB)
    • python manage.py runserver will run a dev version for you (needs an .env file with a testing PostgreSQL db running)

Explanations

/pdap

The Django app.

/utilities

Scripts for scrapers and dataset maintenance.

About

A local app for scraping and submitting data to PDAP.

License:GNU General Public License v3.0


Languages

Language:Python 48.2%Language:HTML 24.2%Language:JavaScript 12.3%Language:CSS 12.1%Language:Shell 3.2%