# createApp

function in `@dioramajs/diorama`

```ts
import { createApp } from '@dioramajs/diorama'
```

Creates an app with the built-in web layer and the given presets and plugins. Call `start()` to
run it.

```ts
function createApp<P extends readonly PresetEntry[] = [], E extends readonly PluginEntry[] = []>(
  options?: AppOptions<P, E>,
): App<ServicesOf<PresetPlugins<P[number]> | Extract<E[number], AnyPlugin>>>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `options?` | `AppOptions<P, E>` |  |

Also exported from `@dioramajs/diorama/auto`, `@dioramajs/diorama/core`, `@dioramajs/core`.

Defined in [packages/core/src/index.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/core/src/index.ts#L51).
