Skip to content

wangdavidhao/flask-app

Repository files navigation

PDF Storage & Text extraction

Project structure

.
├── static                  #Basic styles
│   ├── error.css
│   └── styles.css
│
└── templates               #HTML templates
│   ├── error.html
│   ├── index.html
│   ├── pdf_info.html
│   └── pdf_text.html
│
└── tests                   #Tests
│   ├── conftest.py
│   └── test_app.py
│
├── __init__.py             #App entrypoint & modules
├── app.py
├── db.py
├── models.py
└── routes.py

API Contract

Available at http://localhost:5000/apidocs

Requirements

  • Inside the requirements.txt file with the version dependencies

Installation & Running

After unzipping the folder or cloning the repository

#With Docker
$ docker build -t flask-app .
$ docker run -p 5000:5000 flask-app
#With python3 locally
$ pip install -r requirements.txt
$ export FLASK_APP=__init__ #use SET for Windows machine
$ flask run

Stack

Author

About

A Flask app for PDF data extraction and storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published