Skip to content

reecefenwick/tesseract-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Document Processing API

Prerequisites

Install NodeJS

Install MongoDB

Install RabbitMQ Server

Deploying locally

Clone source via git and cd to folder:

Clone Repository - https://github.com/reecefenwick/tesseract-service.git

Install dependencies via npm:

npm install

Tests

Install mocha globally:

npm install mocha -g

Run the tests

npm test

Run API Server

via node:

node server

Run Worker

via node from /workers directory:

node receive

Documentation

Application Sequence

  1. Client -Upload file via POST to /job - job _id is returned
  2. API - adds a message to queue
  3. Worker - receive the message off the queue
  4. Worker - processes file and updates database
  5. Client - Polls via GET to /job/{_id}

Things to note

  • Basic demo has been setup - navigate to http://localhost:3000/demo
  • Only images are supported currently - PDF input will come later
  • Worker will eventually become its own standalone project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published