This repo contains the code for running agno demo app in 2 environments:
- dev: A development environment running locally on docker
- prd: A production environment running on AWS ECS
- Clone the git repo
from the
agno-demo-app
dir:
- Install workspace and activate the virtual env:
./scripts/dev_setup.sh
source .venv/bin/activate
Optional: Install agno-sdk in editable mode:
VIRTUAL_ENV=.venv
AGNO_DIR=../phidata # Or wherever your agno-sdk is located
uv pip install -e ${AGNO_DIR}/libs/agno
uv pip install -e ${AGNO_DIR}/libs/infra/agno_docker
uv pip install -e ${AGNO_DIR}/libs/infra/agno_aws
- Copy
workspace/example_secrets
toworkspace/secrets
:
cp -r workspace/example_secrets workspace/secrets
-
Install docker desktop
-
Set OpenAI Key
Set the OPENAI_API_KEY
environment variable using
export OPENAI_API_KEY=sk-***
OR set in the .env
file
- Start the workspace using:
ag ws up dev
Open localhost:8000/docs to view the agno demo app.
- Stop the workspace using:
ag ws down dev