Hello all š, Welcome to the Encyclo-Flower site source code. This repo contains the source code for the entire site tech stack (Backend API, Frontend, VM configuration, CI/CD automation, tests, and SWAG web server).
API is running on Python 3.10
Install:
Environment variables:
config.py
)openssl rand -hex 32
Tests:
# For testing + coverage, formatting and linting:
pip install pytest pytest-cov black flake8
# pwd
# ./encyclo-flower
# enter venv
pytest -v -x -s --cov=src/api/ --cov-report xml --cov-report html:.cov_html
# exclude one test VIA command line
pytest -x -s -vv -k 'not detect_image' tests/api/
# format
black src/api/
# lint
flake8 src/api/
Run:
# enter venv
cd src/api
uvicorn main:app --reload
sudo apt install ansible
cd server
ansible-galaxy role install -r requirements.yml
ansible-galaxy collection install -r requirements.yml
# CREATE a 'hosts' file before the next step (see `hosts.example`)
ansible-playbook -i hosts playbook.yml
fastapi
pydantic
full-stack-fastapi-postgresql
ohad24/market