PDF-comparison for baangt test automation suite
bernhardbuhl 10d8a99257 Local changes for Debugging. | 4 years ago | |
---|---|---|
api_frontend | 4 years ago | |
images | 4 years ago | |
pdf_comaprison_flask_api | 4 years ago | |
.gitignore | 4 years ago | |
README.md | 4 years ago |
pip install requirements.txt
First we need to set Flask in our environment
For Windows set FLASK_APP=app.py
For Linux export FLASK_APP=app.py
Now for Database creation
flask db init
flask db migrate
flask db upgrade
To run the microservice, simply use this command
flask run
The app will start running on server 127.0.0.1:5000
export FLASK_ENV=development
before flask run
./api_frontend/index.html
in your browserThe APP
contains two sections
This section contains three fields
Upload
button, data will be stored in database and updated in the below table.Delete
link data will be deleted from database and updated in the below table.Update
link after taht choose a file and data will be updated in database and in below table.This section contains three fields
Upload
button, data will be stored in database and updated in the below table, on success it will automatically call the compare
function to get the comparison of files.Delete
link data will be deleted from database and updated in the below table.