Project Structure

Project Structure

Viewing typescript

switch to python

Moose relies heavily on structural conventions to make sure you can build quickly and reliably. That means the project structure is important.

The following is the basic structure of a Moose project:

      • models.ts
      • sourceModel__destinationModel.ts
      • aggregation.ts
      • data-api.ts
  • package.json
  • moose.config.toml
  • Top-level Folders and Files

    appThe main folder for your application.
    .mooseMoose internals. You shouldn't ever have to touch anything in here.
    package.jsonThe default npm package manifest file (opens in a new tab)
    moose.config.tomlConfiguration file specific to Moose for your application.

    App folders

    datamodelsThe folder where you define your Data Models.
    functionsThe folder where you define your Streaming Functions
    blocksThe folder where you define your Blocks
    apisThe folder where you define your Consumption APIs