maiaPhilippe / pdf-to-text

PDF OCR using Pure Javascript by tesseract.js api
20 stars 10 forks source link

Introduce npm httpserver instead of node file #2

Closed grillorafael closed 7 years ago

grillorafael commented 7 years ago

To use:

npm install and then npm start

This will create a server running on localhost:8080

If npm start throw an error if bin not found you probably need to add local node_modules to your $PATH

File to edit ~/.zshrc with content

PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
PATH=$PATH:./node_modules/.bin
export PATH=$PATH

Second line is what will solve the issue if it happens. After that you need to run source ~/.zshrc to reload this file.

This is an example but feel free to ask if something is not clear enough

grillorafael commented 7 years ago

If you want to try the changes you can do by running the following commands:

  1. git remote update To update remote changes
  2. git checkout npm-server To switch to npm-server branch