Build an app
Write a Cardinal app in Elixir and YAML, with an optional Vue plugin for the desk.
An app is a Mix project in a workspace's apps/<app>/. It holds an app.exs manifest, RecType YAML, Elixir controllers and RPCs, and an optional Vue plugin. Every app uses the same public contract, the first-party ERP, CRM and HRMS apps included.
A RecType is Cardinal's DocType, and a Record is a document. You need a workspace from cardinal init and a site from cardinal new-site. See Cardinal for both.
cardinal app new library --with-frontend
cardinal app install -t mysite.localhost libraryTutorial
One RecType, a validate hook, REST and a test, end to end
App layout
The folders and the app.exs manifest
RecType YAML
Fields, child tables, naming and submittable RecTypes
Controllers
Lifecycle hooks around a record's save, submit and cancel
Reading and writing records
Cardinal.DB: get_list, insert, save, no raw SQL
RPC and REST
@rpc functions and the /api/rec routes
Jobs and scheduler
Oban workers and scheduler entries
Permissions
Rules, row rules, permission files and as_system
Desk plugins
Vue and TypeScript on forms, lists and pages
Testing
cardinal test --app against throwaway tenants
Publishing
Fetch, pin, install and remove apps
Manifest reference
Every app.exs key
Reports
Code Reports and Report Builder views
Workspaces and dashboards
Workspaces, charts, cards and widgets
Platform modules
Every Cardinal.* module an app may call