# TurborepoAppResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.JavaScript.Extensions](/reference/api/csharp/communitytoolkit.aspire.hosting.javascript.extensions.md)
- Type: [TurborepoAppResource](/reference/api/csharp/communitytoolkit.aspire.hosting.javascript.extensions/turborepoappresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents a Node.js application running under Turborepo.

## TurborepoAppResource(string, string, string, string)

- Name: `Constructor(string, string, string, string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.JavaScript.Extensions/TurborepoAppResource.cs#L13-L18)

A resource that represents a Node.js application running under Turborepo.

```csharp
public class TurborepoAppResource
{
    public TurborepoAppResource(
        string name,
        string workingDirectory,
        string filter,
        string command = "turbo")
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory of the application.
- `filter` (`string`)
  The Turborepo filter to use (used in 'turbo run dev --filter={filter}').
- `command` (`string`) `optional`
  The command to run (default is 'turbo').
