Install
Last updated
Was this helpful?
Last updated
Was this helpful?
This is the official documentation of the @forestadmin/agent
Node.js agent.
The Forest Admin agent can run as a Standalone server (You can see it in action in the ), but can also be "attached" to an existing Node.js application server (That we usually call "In-app").
We recommend installing the Forest Admin agent "In-app" whenever it's possible, as our can be tied to your application deployment process.
However, if you don't already have an existing Node.js application, or if you prefer to run Forest Admin in an isolated context, you can still use our installation.
To install Forest Admin in a JavaScript or TypeScript environment, you'll need to install the @forestadmin/agent
package. It exposes all the code required to create a Forest Admin agent.
You will also need to install at least one of package.
If you don't use it already, you can also install , which eases the management of environment variables. Even though it is not mandatory for Forest Admin to run, the example provided in the following documentation will use this package.
The following sections will provide examples to ease your installation process. All of them will show how to run the agent using an SQL data source on our supported application servers.