Skip to main content

Example Applications

Complete example applications built with Framework M.

Available Examples

ExampleDescriptionDocTypes
TODO AppSimple task managementTask
CRMCustomer relationship managementContact, Deal

Using Examples

Each example includes:

  • DocType definitions - Schema with fields
  • Controller code - Business logic
  • API usage - curl examples
  • Quick start - Step-by-step setup

Creating Your Own App

# 1. Create app
uv run m new:app myapp

# 2. Create DocTypes
cd myapp
uv run m new:doctype MyDocType

# 3. Edit files
# - src/doctypes/my_doctype/doctype.py
# - src/doctypes/my_doctype/controller.py

# 4. Run migration
uv run m migrate init
uv run m migrate create "Add MyDocType" --autogenerate
uv run m migrate

# 5. Start Studio
uv run m studio