Sample apps

Sample apps

This post is about how to get sample apps to work right in your post and follow site conventions. For guidance about how to use sample apps to support your writing goals, see the Write useful code samples post. uses Glitch to embed web-based sample apps and development environments in its posts and codelabs. Glitch is handy because it lets you demonstrate both frontend and backend code.

Create a new Glitch

  1. If you aren't already a member of the Glitch team, ask your content reviewer to be added.
  2. Once you're on the team, remix the Hello Webpage template or Hello Express template, depending on which is closest to what you're trying to build.
  3. Replace the automatically generated title for your Glitch with a descriptive name that hasn't already been used elsewhere on
  4. Give your Glitch a brief description.
  5. Use the logo for your Glitch thumbnail.
  6. Add the Glitch to the team page.

Authoring tips

Make all Glitch code accessible.

Be mindful of the development landscape when selecting tools and frameworks.

Make sure the README for your Glitch links back to Here's a template you can use:

# [Your Article Name]
This example is part of the [name of article](link/to/article) post on [](

Use the license headers for HTML, CSS, and JS files:

// Copyright 2018 Google LLC.
// SPDX-License-Identifier: Apache-2.0

Manage the dependencies in your Glitch by adding them to the package.json file. Otherwise, dependencies can get out of date and break the Glitch. (Or you can ask readers to add dependencies to the Glitch's package.json themselves if that's relevant to what you're teaching. Any time the package.json file is edited, Glitch will automatically run npm again.)

Last updated: Improve article