Customers & growth · Developer marketing

Sample application framework

Best for Startup

ARCHITECTUREREFERENCE CODEDEPLOY GUIDE

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

  • Scenario
    The 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 decisions
    The services, data store, hosting and sign-in the app uses, with the team's recommended approach for each, agreed with engineering.
  • Feature list
    The product features the app must show, each mapped to the docs page that explains it.
  • Seed data and settings
    Sample records to load at setup, and every key, credential and service ID the app needs.
  • Release approvals
    License choice, clearance for third-party libraries and a security review, from legal and security.

Steps

  1. Write a one-page spec naming the scenario, the features shown, the architecture and what the app leaves out, and agree it with engineering.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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

Show all 4 sources

By company stage

  1. Pre-IdeaNot applicableThere is no developer product yet.
  2. IdeaUsefulA simple sample app can help early developers adopt the MVP, though it is optional.
  3. Early StartupUsefulSamples help developer adoption as a channel, but docs and basics come first.
  4. StartupCriticalDeveloper adoption becomes a second channel, and reference implementations lower the integration barrier.
  5. GrowthUsefulSamples for varied stacks and segments support expansion.
  6. ScaleUsefulMultiple products need maintained reference apps, though this is routine work.
  7. EnterpriseUsefulDeveloper relations teams still maintain sample programs as routine work across many products.

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.

Recommended 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