Skip to content
Snippets Groups Projects
Select Git revision
  • 61dd6c04433a4154b82d6031e5151943349f5673
  • dependabot/npm_and_yarn/eslint-plugin-prettier-5.5.1
  • dependabot/npm_and_yarn/chai-5.2.1
  • dependabot/npm_and_yarn/smol-toml-1.4.1
  • dependabot/npm_and_yarn/sentry/node-9.38.0
  • dependabot/npm_and_yarn/webextension-store-meta-1.2.7
  • dependabot/npm_and_yarn/eslint-9.30.1
  • dependabot/npm_and_yarn/cypress-14.5.1
  • dependabot/npm_and_yarn/simple-icons-15.5.0
  • dependabot/npm_and_yarn/eslint-plugin-import-2.32.0
  • dependabot/npm_and_yarn/eslint-plugin-jsdoc-51.3.4
  • dependabot/npm_and_yarn/prettier-3.6.2
  • dependabot/npm_and_yarn/is-svg-6.1.0
  • dependabot/npm_and_yarn/query-string-9.2.2
  • dependabot/npm_and_yarn/mocha-11.7.1
  • dependabot/npm_and_yarn/globals-16.3.0
  • dependabot/npm_and_yarn/neostandard-0.12.2
  • dependabot/npm_and_yarn/concurrently-9.2.0
  • dependabot/npm_and_yarn/pg-8.16.3
  • dependabot/npm_and_yarn/typescript-eslint/parser-8.36.0
  • gh-pages
  • server-2025-07-01
  • 5.0.2
  • 5.0.1
  • 5.0.0
  • server-2025-06-01
  • server-2025-05-01
  • server-2025-04-03
  • server-2025-03-02
  • server-2025-03-01
  • server-2025-02-02
  • server-2025-01-01
  • server-2024-12-01
  • server-2024-11-02
  • 4.1.0
  • server-2024-09-25
  • server-2024-09-02
  • server-2024-08-01
  • server-2024-07-01
  • 4.0.0
  • server-2024-06-01
41 results

entrypoint.spec.js

Blame
  • tutorial-code-walkthrough.html 15.26 KiB
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="utf-8">
        <title>JSDoc: Tutorial: code-walkthrough</title>
    
        <script src="scripts/prettify/prettify.js"> </script>
        <script src="scripts/prettify/lang-css.js"> </script>
        <!--[if lt IE 9]>
          <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
        <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
    </head>
    
    <body>
    
    <div id="main">
    
        <h1 class="page-title">Tutorial: code-walkthrough</h1>
    
        <section>
    
    <header>
        
    
        <h2>code-walkthrough</h2>
    </header>
    
    <article>
        <h1>High-level code walkthrough</h1>
    <h2>Code inventory and testing strategy</h2>
    <p>The Shields codebase is divided into several parts:</p>
    <ol>
    <li>The frontend (about 7% of the code)
    <ol>
    <li><a href="https://github.com/badges/shields/tree/master/frontend"><code>frontend</code></a></li>
    </ol>
    </li>
    <li>The badge renderer (which is available as an npm package)
    <ol>
    <li><a href="https://github.com/badges/shields/tree/master/badge-maker"><code>badge-maker</code></a></li>
    </ol>
    </li>
    <li>The base service classes (about 8% of the code, and probably the most important
    code in the codebase)
    <ol>
    <li><a href="https://github.com/badges/shields/tree/master/core/base-service"><code>core/base-service</code></a></li>
    </ol>
    </li>
    <li>The server code and a few related odds and ends
    <ol>
    <li><a href="https://github.com/badges/shields/tree/master/core/server"><code>core/server</code></a></li>
    </ol>
    </li>
    <li>Helper code for token pooling and persistence (used to avoid GitHub rate limiting)
    <ol>
    <li><a href="https://github.com/badges/shields/tree/master/core/token-pooling"><code>core/token-pooling</code></a></li>
    </ol>
    </li>
    <li>Service common helper functions (about 7% of the code, and fairly important
    since it’s shared across much of the service code)
    <ol>
    <li><code>*.js</code> in the root of <a href="https://github.com/badges/shields/tree/master/services"><code>services</code></a></li>
    </ol>
    </li>
    <li>The services themselves (about 80% of the code)
    <ol>
    <li><code>*.js</code> in the folders of <a href="https://github.com/badges/shields/tree/master/services"><code>services</code></a></li>
    </ol>