-
Set up Environment Variables: The project root contains a
.env.samplefile. Copy this file to.envwithin the same directory and fill in the required values (like API keys or tokens).cp .env.sample .env # Then edit .env -
Ensure
uvis installed: Follow the installation instructions at https://docs.astral.sh/uv/install/. -
(Optional) Create the Virtual Environment: While
uv runcan create the environment automatically, you can create it explicitly if preferred:uv venv
You generally do not need to manually activate the environment or run
uv syncif you useuv runfor executing commands.
Use uv run to execute the adk web command. uv will automatically ensure the project environment (.venv) exists and is synced with the uv.lock file before running the command.
uv run adk webThe web interface will be available at localhost:8000.
-
Copy the sample environment file and edit it as needed:
cp .env.sample .env # Edit .env to fill in required values -
Build and start the service:
docker compose up --build
The web interface will be available at http://localhost:8000
-
To stop the service:
docker compose down
This project uses pyproject.toml to define direct dependencies and uv.lock as the lockfile generated by uv for reproducible installs.
To add a new dependency:
-
Add the package using
uv add: This command automatically updates bothpyproject.tomlanduv.lock.# Example: Add the 'requests' library uv add requests # Example: Add a package with a version constraint uv add "requests>=2.25"
-
Commit the changes: Commit both the updated
pyproject.tomlanduv.lockfiles to version control. This ensures that other developers and deployment environments use the exact same set of dependencies. Other developers will automatically get the new dependency the next time they useuv runor if they explicitly runuv sync.
docker build -t cofacts/beta-ai .
docker push cofacts/beta-aiAnd go to server to pull & run the image.