> ## Documentation Index
> Fetch the complete documentation index at: https://thrackle.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> How to add the Rules Engine to your project

## Environment Prerequisites

This guide assumes the following tools are installed and configured correctly. Please see each tool's installation instructions for more details:

* [Git](https://git-scm.com/)
* [NodeJS](https://nodejs.org/) - v20.x.x
* [Foundry](https://book.getfoundry.sh/getting-started/installation) - v1.0.0-stable

## Install Dependencies

You will need to add both the Forte Rules Engine solidity package and the typescript SDK to your project.

```bash
npm install @thrackle-io/forte-rules-engine
npm install @thrackle-io/forte-rules-engine-sdk
```

Update your `remappings.txt` **or** `foundry.toml` to include the path to the Forte Rules Engine.

<CodeGroup>
  ```yaml remappings.txt
  // any other existing remappings already present
  @thrackle-io/forte-rules-engine/=node_modules/@thrackle-io/forte-rules-engine
  ```

  ```yaml foundry.toml
  [profile.default]
  remappings = [
      // any other existing remappings already present
      "@thrackle-io/forte-rules-engine/=node_modules/@thrackle-io/forte-rules-engine",
  ]
  ```
</CodeGroup>
