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 4
Run the following command
pre-commit run --all-files
You can also fix auto-fixable ruff erros by running the following command
ruff check . --fix
Use 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=DEBUG
find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
git branch | grep -v "main" | xargs git branch -D