This Flask-based web application is designed for generating 4x6 shipping labels using QuickBooks Online (QBO) data and it is optimized for deployment on Google Cloud Run.
Click here to see an example of a generated PDF for 3 labels (one for each box).
- Navigate to your local repository directory.
cd your-repository-path/
-
Replace or edit all ".example" files.
-
Choose either to deploy and run on Google Cloud or to run on your local machine and then proceed accordingly.
Run the following command:
gcloud run deploy [DESIRED NAME FOR THE APP] --source . --region [DESIRED REGION] --allow-unauthenticated --memory 1G
Example:
gcloud run deploy label-generator --source . --region us-central1 --allow-unauthenticated --memory 1G
Run the following commands:
pip install -r requirements.txt
python app.py --on-premises [--sandbox or --production]
The --sandbox flag is used to run the application on Intuit's (QBO) sandbox environment. This is typically used for testing and development purposes, where changes can be made and tested without affecting the production environment.
The --on-premises flag allows the application to be run on a local machine.
All ".example" files provided in this repository are templates. They should be either replaced or renamed without the ".example" extension - if you choose the second option, then moddify the content with the actual values relevant to your deployment.