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
- models.py
- sourceModel__destinationModel.py
- aggregation.py
- data-api.py
Top-level Folders and Files
app | The main folder for your application. |
.moose | Moose internals. You shouldn't ever have to touch anything in here. |
package.json | The default npm package manifest file (opens in a new tab) |
moose.config.toml | Configuration file specific to Moose for your application. |
App folders
datamodels | The folder where you define your Data Models. |
functions | The folder where you define your Streaming Functions |
blocks | The folder where you define your Blocks |
apis | The folder where you define your Consumption APIs |