add-backend
Add an app backend with `ms app add backend --provider rayfin`. Currently covers database entities and client integration. Use only when the user explicitly requests a database, /add-backend, or Rayfin.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- add-backend
- description
- Add an app backend with `ms app add backend --provider rayfin`. Currently covers database entities and client integration. Use only when the user explicitly requests a database, /add-backend, or Rayfin.
02 资源文件 2
- 参考文档references/rayfin-crud-ui.md4.7 KB
- 参考文档references/rayfin-data-modeling.md4.3 KB
03 SKILL.md 正文
Shared instructions: shared-instructions.md
Add an app backend
Required first: pass the Rayfin feature gate.
1. Set up the database
If rayfin/rayfin.yml exists, use the existing configuration. Otherwise, run:
ms app add backend --provider rayfin --json
This creates the backend configuration, TypeScript configuration and rayfin/data/.
Keep the existing app layout and exclude rayfin/.temp/ from version control.
This prepares the app's backend definitions; it does not provision a database. Rayfin is the app backend, not an existing database to select or connect to.
2. Install dependencies
Run from the app root before continuing so the declared dependencies and their
version-matched docs are available in node_modules:
npm install
Use the app's existing package manager and lockfile if it does not use npm. Report installation or peer-dependency errors; do not force-install or downgrade the app to bypass them. Add missing direct dependencies only as required by the implementation described in the references.
3. Implement and check the app
Read the installed package docs identified in these references, then follow them in order:
- Data modeling: entities, permissions and required Copilot Managed Runtime host initialization.
- CRUD UI: lists, forms, mutations and persistence checks.
When invoked from /create-app, complete data modeling in Step 9 and return the
entity/client paths; that workflow handles UI implementation and checks in
Steps 10-11. Standalone use continues through both references.
4. Follow the app lifecycle
Use the normal app build and deploy workflow, not a separate Rayfin provisioning workflow.
04 同仓库更多 Skills
setup-taskmanager
Sets up the Task Manager template for a new owner - copies the sample into its own folder, signs in to the `ms` CLI, creates the app and its platform-managed git repository on Copilot Managed Runtime, adds the Azure DevOps, Teams and Office 365 Users connectors, writes .env.local and admins.json, verifies with npm run check-setup, and commits and pushes to the app's repository. Use when someone has just cloned this template, when `npm run dev` or `npm run build` stops at check-setup, or when ms.config.json is missing.
add-data-source
Moves this app's data from browser-local storage to a shared backend (SharePoint lists, Dataverse tables, a REST API, or any other store) by adding a storage provider. Use when the user wants app data shared between people or devices, kept outside the browser, or stored in a specific system.
setup-taskmanager
Sets up the Task Manager template for a new owner - copies the sample into its own folder, signs in to the `ms` CLI, creates the app and its platform-managed git repository on Copilot Managed Runtime, adds the Azure DevOps, Teams and Office 365 Users connectors, writes .env.local and admins.json, verifies with npm run check-setup, and commits and pushes to the app's repository. Use when someone has just cloned this template, when `npm run dev` or `npm run build` stops at check-setup, or when ms.config.json is missing.
add-data-source
Moves this app's data from browser-local storage to a shared backend (SharePoint lists, Dataverse tables, a REST API, or any other store) by adding a storage provider. Use when the user wants app data shared between people or devices, kept outside the browser, or stored in a specific system.
setup-learninghub
Set up the Learning Hub sample after cloning it - copy it into its own folder, install dependencies, sign in with the ms CLI, create the app and its platform-managed git repository with ms app init (writes ms.config.json), hide the host header, add the Office 365 Users connector, configure .env.local, verify with check-setup, start local development, and commit and push to the app's repository. Use when someone asks to set up, configure, run or deploy this app for the first time, or when `npm run dev`/`npm run build` stops with "Learning Hub is not set up yet".
add-data-source
Moves this app's data from browser-local storage to a shared backend (SharePoint lists, Dataverse tables, a REST API, or any other store) by adding a storage provider. Use when the user wants app data shared between people or devices, kept outside the browser, or stored in a specific system.