Run Playground
This guide will help you run the Nyra-Agent Playground. The playground is a web-based interface that enables you to interact with the Nyra-Agent. You can swap modules, modify configurations, and test the agent's behaviour in a controlled environment.
Run playground from pre-built Docker image
The most efficient way to run the playground is by utilizing the pre-built Docker image. This image includes the latest version of both the Nyra-Agent and the playground environment. The project's Docker Compose file is already configured to use this image, so you can begin by following the steps in the getting started guide.
Once the setup is complete, access the playground by opening your browser and navigating to http://localhost:3000.
Run playground from source code
To run the playground from the source code, open a new terminal, navigate to the directory where you cloned the Nyra-Agent repository, and follow the steps outlined below:
# Change to the playground directory
cd playground
# Install dependencies
pnpm install
# Start the playground
pnpm devOnce the playground is started, you can access it by opening the browser and navigating to http://localhost:3001.
Note: The playground depends on the golang web server (located in server directory) and ten-dev-server (provided by Nyra framework cli). The ten-dev-server is by default provided when you start with docker compose up -d command. The web server will start when you run task run command in the container after you follow the steps in the getting started guide.
Last updated