To start the app in development mode, please follow the instruction in:
- dev-setup/README.md - To setup your development environment
- contracts/README.md - To deploy the contracts
- teesa/README.md - To run the Next.js app
Follow these instructions to set up, configure, and run the Teesa application in production mode on your local machine or server.
Make sure you have the following installed:
-
Clone the repository
git clone https://github.com/comrade-coop/teesa-aapp.git
-
Navigate to the root directory:
cd teesa-aapp
-
Build the production Docker image:
docker build \ --build-arg NETWORK=<network> \ # localhost, sepolia, base --build-arg RPC_URL=<rpc_url> \ # RPC URL for the network --build-arg BLOCKCHAINSCAN_API_KEY=<blockchainscan_api_key> \ # API key for the blockchain scanner (Etherscan or Basescan, depending on the network. We automatically use the correct API key based on the network.) --build-arg TEAM_ADDRESS=<team_address> \ # The address of the team multi-sig wallet --build-arg ANTHROPIC_API_KEY=<anthropic_api_key> \ # API key for the Anthropic API --build-arg ELIZA_API_URL=<eliza_api_url> \ # The URL for the Eliza API --build-arg ELIZA_AGENT_ID=<eliza_agent_id> \ # The Eliza agent ID (can get it from HTTP GET: `${ELIZA_API_URL}/agents`) --build-arg PRIVYIO_APP_ID=<privyio_app_id> \ # App ID of the PrivyIO --build-arg PRIVYIO_APP_SECRET=<privyio_app_secret> \ # App secret of the PrivyIO --build-arg ATTESTATION_URL=<attestation_url> \ # Url for serving attestation verification by aApp Toolkit --pull \ --rm \ -f "deploy/Dockerfile" \ -t teesa-app-deploy:latest \ .
-
Run the production container:
docker run \ -p 3000:3000 \ -v "$(pwd)/volumes/ollama:/root/.ollama" \ # Optional: If you want to persist the ollama models teesa-app-deploy:latest
Once the container is started, you can access the application in your web browser at:
http://localhost:3000
This project is licensed under the MIT License. Feel free to use, modify, and distribute this project as per the license terms.