jadeocr docs
Quickstart
Quickstart
First clone the jadeocr repository
git clone https://github.com/jadeocr/jadeocr-nextThen set up your environment variables in client/.env
client/.env
VUE_APP_API_BASEURL="my_server_url/api"Then run the following to quickly spin up a dev instance
Web Client Setup
cd clientyarn && yarn twbuildyarn serve # Starts dev server on http://localhost:8080Server Setup
First set up a MongoDB server (locally or on MongoDB Atlas) then add the following to server/.env
server/.env
MONGOOSEURL="my_mongoose_url_with_key"On the server, make sure you have Python3 and TensorFlow Lite installed. Also make sure that you have installed virtualenv (pip install virtualenv) to isolate dependencies from the rest of your system.
Then run the following
cd server# Python setupvirtualenv venv # Creates python virtual environmentsource venv/bin/activate # Activates virtual environment (run each time before working with the server)pip install --upgrade pip # Updates pippip install -r requirements.txt # Installs dependencies# Start up node.js servercd serveryarn && yarn dev # Starts dev server on http://localhost:3000deactivate # Deactivates virtual environment (run this when you're done)