Install
Standalone vs In-app installation
The Forest Admin agent can run as a Standalone server (You can see it in action in the quickstart), 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 Development workflow 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 Standalone installation.
Requirements
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 our data sources package.
If you don't use it already, you can also install dotenv ↗, 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.
Last updated
Was this helpful?