Skip to content

GWCustom/bfabric-app-barcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bfabric-app-template

Template Application for Bfabric Webapp Concept (written in Python3)

Deployment

  1. Fork the Repo

  2. Clone your Repo

git clone https://github.com/your/bfabric-app-template/fork.git && cd bfabric-app-template
  1. Set up virtual environment:

For using virtualenv:

python3 -m venv my_app_1
source my_app_1/bin/activate

For using conda:

conda create -n my_app_1 pip
conda activate my_app_1

For using mamba:

mamba create -n my_app_1 pip
conda activate my_app_1
  1. Install bfabricpy:
git clone https://github.com/fgcz/bfabricPy.git && cd bfabricPy
git checkout bfabric12 
cd bfabricPy
python3 setup.py sdist && pip3 install dist/bfabric-0.13.*.tar.gz
cd ..
  1. Install remaining dependencies:
pip install -r requirements.txt
  1. Create a PARAMS.py file with your host and port!
# PARAMS.py
HOST = "0.0.0.0"
PORT = 8050
  1. Run the application
python3 index.py
  1. Check it out!

Visit http://localhost:8050 to see your site in action.

Notes for Production Deployment

You can deploy this app by running

python3 index.py

within a screen session (for example). But you'll also need to execute:

python3 worker.py

within a separte session. This will spawn a worker process which listens to the redis queue on localhost.

If redis is not running on the deployment server, you'll need to install it and set it up to run on localhost (on the default port 6379).

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors