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
      • dataApi.ts
        • 1.firstTask.ts
        • 2.secondTask.ts
        • config.toml
  • package.json
  • moose.config.toml

Top-level Folders and Files

appThe main folder for your application.
.mooseMoose internals. Your auto-generated project documentation is stored here.
package.jsonThe default npm package manifest file
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
scriptsThe folder where you define your Workflows