Quick start: hosted app
In ten minutes, go from an empty project to a hosted app that shows the profile and events of the signed-in member. You need an account in the Artim Developer Portal and a Methacore account in which you are a member of a club – the preview works with your real data.
1. Project and client in the Artim Developer Portal
- Create a project in the Artim Developer Portal (or choose one) and enable the “Methacore Apps” API under APIs.
- Under OAuth, create a client for this API and choose the scopes your app might need – for this example
mc.me.profile:readandmc.me.events:read. - Open Methacore App in the project navigation. Enter a name, choose Hosted as the kind and Both as the target platform. Save.
The client needs no redirect URI: hosted apps always sign in via https://apps-run.methacore.de/oauth/callback, and the Artim Developer Portal automatically allows this address for every client of the “Methacore Apps” API.
2. Open the Studio and link your account
Open studio.methacore.de and sign in with your Methacore account. The first time, the Studio asks for your Artim Developer Portal account: “Sign in with Artim Developer Portal” links both accounts once. After that, the Studio shows all apps of the teams you belong to. Use ⌘K (Ctrl+K) to jump between them.
Every app has five areas:
| Area | What for |
|---|---|
| Builder | arrange components by drag & drop, set properties, data sources and actions |
| Code | edit app.json, main.js, styling.css and other files directly, with autocompletion |
| Preview | try the app as in the dashboard or on the phone, with real data |
| Versions | publish versions, see review status |
| Settings | OAuth client, permissions, initial state |
Builder and Code work on the same draft. What you change in the builder appears immediately in app.json and vice versa. The draft saves itself; an invalid app.json is never saved – the Studio shows you the errors instead.
3. Settings: client and permissions
Under Settings, choose the OAuth client from step 1 and tick the permissions members should consent to on first open: Read profile and Read events. The Studio writes both to app.json:
"auth": {
"clientId": "cl_7d2e41a9",
"scopes": ["mc.me.profile:read", "mc.me.events:read"]
}
Only scopes the client carries are offered. Name and icon come from the listing in the Artim Developer Portal; the name is written to app.json automatically.
4. Build in the builder
- Drag a Heading from the palette onto the canvas and set the text to
Hallo {{state.profil.firstName}}. - Open Data sources on the right and add My profile. The builder creates the binding and writes the result to the state key
profil. - Add the My events data source. It ends up under
termine; the builder picksitemsas the field for the list. - Drag a Table below it, set Data source to
{{state.termine}}and click the columnstitle,startandlocation.
On the canvas, the builder shows sample data from the data source catalogue. Real data is available in the preview.
In the Code area, the same looks like this:
{
"$schema": "https://methacore.de/schemas/apps/app/v1.json",
"schemaVersion": 1,
"name": "Meine Termine",
"auth": { "clientId": "cl_7d2e41a9", "scopes": ["mc.me.profile:read", "mc.me.events:read"] },
"initialState": {},
"root": {
"id": "root",
"type": "Stack",
"props": { "gap": 12 },
"bind": [
{ "source": "me.profile", "to": "profil" },
{ "source": "me.events", "to": "termine", "pick": "items" }
],
"children": [
{ "id": "heading-1", "type": "Heading", "props": { "text": "Hallo {{state.profil.firstName}}", "level": 2 } },
{
"id": "table-1",
"type": "Table",
"props": {
"data": "{{state.termine}}",
"columns": [
{ "key": "title", "label": "Termin" },
{ "key": "start", "label": "Beginn" },
{ "key": "location", "label": "Ort" }
],
"empty": "Keine Termine in den nächsten 90 Tagen"
}
}
]
}
}
5. An export at the push of a button
Drag a Button below the table, label Als Excel exportieren. Under Actions → On click, add Export: format xlsx, data {{state.termine}}, file name termine. In the dashboard, the host downloads the file; on the phone, the share dialog opens.
{
"id": "export",
"type": "Button",
"props": { "label": "Als Excel exportieren", "variant": "light" },
"on": {
"click": [
{ "type": "export", "format": "xlsx", "data": "{{state.termine}}", "filename": "termine",
"columns": [{ "key": "title", "label": "Termin" }, { "key": "start", "label": "Beginn" }] }
]
}
}
6. Preview
Under Preview, the app runs in a desktop or phone frame, matching the target platform. On first start, it asks for your consent just like in the dashboard. You do not sign in again: the Studio passes on your existing Methacore sign-in as a one-time ticket. After that, you see your own profile and your own events.
The preview loads the draft via a preview ticket that is valid for five minutes; the Studio renews it automatically. The preview shows notices (toast), navigation and “Close app” as messages.
7. Publish a version
Under Versions → Publish version, enter a version number (1.0.0) and change notes. The version freezes the draft and goes to review. You can see the status in the Studio and in the Artim Developer Portal under Methacore App → Review per version. Once approved, it is live – immediately for your club, and for everyone else as soon as the listing is public.
Next steps
- Custom logic: main.js & handlers
- Custom look: Styling
- Storing data: App storage