.
├── 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
Available at http://localhost:5000/apidocs
- Inside the requirements.txt file with the version dependencies
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
- WANG David - SIO CentraleSupélec [email protected]