/report-text-extraction

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

report-text-extraction

API Documentation

Kick-Start without Docker

# install pipenv
pip3 install --user pipenv

# navigate to project dir
cd report-text-extraction

# install dependencies
pipenv install --ignore-pipfile

# activate Pipenv shell
pipenv shell

# configure server
set flask_env=development
set flask_app=app.py

# run api server
flask run

Open your browser with this URL: http://localhost:5000/docs

Running application with Docker

To run the application with Docker, install the Docker Engine and Docker Compose on your development machine.

Development build

# Run the application in dev mode in Docker
# Use --build option to rebuild the container after any changes on environment (ie. installing modules)
docker-compose up [--build]

Open your browser with this URL: http://localhost:5000/docs

Production build

# Run the application in production mode in Docker
docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml up --build

Tag and push your production build into Docker registry

# We currently build the image with 'latest' as <VERSION> tag 
docker tag bizres-text-extractor:prod <REGISTRY_URL>/bizres-text-extractor:<VERSION>

# Push the image to registry
docker push <REGISTRY_URL>/bizres-text-extractor:latest