From 6b5083731d311e768de41b1a4f8ad9e98f5d3bde Mon Sep 17 00:00:00 2001 From: Mikayla Dobson <93477693+innocuous-symmetry@users.noreply.github.com> Date: Tue, 26 Apr 2022 14:10:19 -0500 Subject: [PATCH] Create README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9bc0cd2 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# python-node-pdf-reader +A simple Node interface with a locally hosted server; allows the user to convert PDF files to text using Python and query from a list of these files with a basic Express server. + +## Local deployment +1. From within the project directory, run ```node app.js``` to start the Express server. +2. The Python logic will be automatically triggered while this server is active. +3. The ```/pdf-gen/``` endpoint allows you to provide a href within the project folder "recipes" from which to extract text. +4. Expects the URL format ```{localhost}/url-gen?href={your path}``` +5. The ```/pdfs/:name``` endpoint allows you to search your files for a .txt file of a certain name. A preview excerpt of 150 characters is then sent as a response.