Customers & growth · Developer marketing
Sample application framework
Best for Startup
Use it when
Developers need to see how a complete, deployable app built on your product fits together before they design their own, and snippets cannot show that.
Skip it when
- Developers want a boilerplate to begin their own project. Use Starter templates.
- Readers need one ready-to-copy example for a single call or task. Use Code sample framework.
- New developers need a guided path from setup to a first working result. Use Tutorial design framework, which can point to this app.
- You are planning a hands-on session where developers extend a reference app. Use Developer workshop framework, which takes this app as its starting point.
What to apply first and what to use instead are listed below.
Inputs
- ScenarioThe real use case the app shows, such as checkout with refunds for an online store, chosen from questions in support tickets and forums over the last 90 days.
- Architecture decisionsThe services, data store, hosting and sign-in the app uses, with the team's recommended approach for each, agreed with engineering.
- Feature listThe product features the app must show, each mapped to the docs page that explains it.
- Seed data and settingsSample records to load at setup, and every key, credential and service ID the app needs.
- Release approvalsLicense choice, clearance for third-party libraries and a security review, from legal and security.
Steps
- Write a one-page spec naming the scenario, the features shown, the architecture and what the app leaves out, and agree it with engineering.
- Build the app with the recommended approach for each part, only the features in the spec, a small set of well-known dependencies, seed data and keys held in environment variables.
- Add infrastructure as code or a deploy script, so a developer can deploy the whole app to their own account with one command and remove it with another, and test both from a clean account.
- Write the readme with prerequisites, setup, deploy and removal steps, an architecture diagram, expected results and running cost, and link each feature to its docs page and each docs snippet back to the app's code.
- Put the app under automated tests and a deploy check that run on each product release, and clear the license, libraries and security review before publishing.
- Publish it in a company-approved repository, name an owner who answers issues and pull requests, and set a review date to update or retire it.
Output
A published sample application with its spec, deploy path and readme, plus a register entry that tracks its owner, its last passing release and its review date.
- Scenario and features shown
- Architecture and services used
- Deploy and removal commands
- Feature links to docs pages
- Product and dependency versions
- Last passing test and deploy check
- Owner for issues and pull requests
- Review date
Done when
- A developer can deploy the app to a clean account with the readme's steps and one command, and remove it again.
- Every feature in the spec is in the app and links to its docs page, and the app has no feature outside the spec.
- The repository holds no credential, confidential file or library without clearance.
- Tests and the deploy check pass on the current product release.
- The app names an owner and a review date.
Measure
Each month, track deploys or clones of the app, open issues and their response time, and the share of developers who view it and reach activation within 30 days. Compare with the months before launch, or with developers who did not view it. Judge against your own baseline. Update or retire the app when issues pile up or use falls for two quarters in a row.
Hypothetical example
Ledgerpath, a payments API, gets many forum questions on handling refunds and webhooks together. The team writes a spec for a small online store app that shows checkout, refunds and webhook handling, with a web front end, an API service and a hosted database, and leaves out user accounts. Keys sit in environment variables, and one command deploys everything to the developer's own cloud account with seed products. The readme has an architecture diagram, a cost note and a link from each feature to its docs page. A release check deploys the app to a clean account each week. After two quarters, forum questions on webhooks fall by a third against the two quarters before.
Common mistakes
- Publishing an internal test app. Rebuild it to the team's recommended practices first, since developers copy what they see.
- Adding polished extras that bury the features being shown. Keep to the spec, and say in the readme what the app leaves out.
- Leaving the app without an owner once its engineers move on. Name an owner for issues and pull requests, and keep it passing on each release.
- Shipping without a removal step or cost note. Tell developers what the deploy creates, what it costs and how to remove it.
Sources
- Sample apps (Documenting APIs) · Tom Johnson, 2026
- Creating sample code (Technical Writing Two) · Google for Developers
- Sample application guidelines · Algolia
Show all 4 sources
- Azure Developer CLI templates overview · Microsoft Learn, 2026
By company stage
Apply first
Nothing. You can start here.
Use instead
- Starter templates
use starter templates when developers want a boilerplate to begin their own project; use a sample application when they need to see a complete, deployable reference architecture.
- Code sample framework
Readers need one ready-to-copy example for a single call or task. Use Code sample framework.
- Tutorial design framework
New developers need a guided path from setup to a first working result. Use Tutorial design framework, which can point to this app.
- Developer workshop framework
You are planning a hands-on session where developers extend a reference app. Use Developer workshop framework, which takes this app as its starting point.
Where it sits
Open the developer marketing roadmapRecommended resources
No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.
Progress is not saved until you have an account. Create a free account