Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 868 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 868 Bytes

MVP to test FlowChart to execute tasks


Criação de .env

  • An .env file must be created in the root of the project, using the '.env-example' file as a reference
DATABASE_URI = 'mysql://USUARIO_BANCO:SENHA_BANCO@IP/NOME_BANCO'
USER_ADM = ''
USER_ADM_PASSWORD = ''

Unit testing

python3 -m pytest --cov-config=.coveragerc --cov-report html --cov=. main/

Linux 🐧

Install all dependencies

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Optional - In case of error with Mysqlclient

sudo apt-get install python3-dev default-libmysqlclient-dev build-essential

Optional - Execute Worker

python3 main/helpers/worker.py

Execute

python3 -m flask --app main --debug run