Prism Backend implemented with FastAPI
- Create a new conda environment and install python 3.10
conda create -n prism
conda install python=3.10- Install poetry
curl -sSL https://install.python-poetry.org | python -- Install packages and activate the virtual environment
poetry install
poetry shell- Setup pre-commit git hook
pre-commit install- Create .env file
Ask teammates for the environment configuration
touch .env- Start local Ray instance
ray start --head --port=6379- Run the api using the following command
cd app
python -m uvicorn main:app --workers 4Run the following command
pre-commit run --all-filesYou can also fix auto-fixable ruff erros by running the following command
ruff check . --fixUse the following command
poetry add [PACKAGE_NAME]- Install Terraform
brew tap hashicorp/tap
brew install hashicorp/tap/terraform- Verify the installation
terraform -help- Enable DEBUG logging (if you want to)
export TF_LOG=DEBUGfind . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rfgit branch | grep -v "main" | xargs git branch -D