Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kraken Core

Kraken Core

A basic run down of the things that make up kraken in an effort to help demystify.

Jean-Charles Sisk

February 20, 2015
Tweet

More Decks by Jean-Charles Sisk

Other Decks in Programming

Transcript

  1. WWWW,H * Jean-Charles Sisk * Kraken team * Boston *

    PayPal via WHERE * French and American * Drowned once—got better * Sagittarius
  2. WWWW,H * Jean-Charles Sisk * Kraken team * Boston *

    PayPal via WHERE * French and American * Drowned once—got better * Sagittarius
  3. OPENSOURCE kraken-js The brains of the operation. Grand orchestrator of

    all the other modules, either implicitly or via configuration. Leverages all the functionality built into the Express framework.
  4. OPENSOURCE confit Configuration manager written—in part —to replace nconf. Unlike

    nconf, no singleton is exposed which means more thought has to go into configuration. When you use the config files, you’re dealing with confit.
  5. OPENSOURCE shortstop Allows you to write strict JSON that represent

    other JavaScript objects, functionality, etc.
  6. OPENSOURCE meddleware Configuration-driven middleware loader. Allows middleware to be loaded

    in a non- line-order specific, priority-driven manner, all from a central location (config file). Also enables advanced middleware flow control (parallel, race, and fallback).
  7. OPENSOURCE express-enrouten Automated “controller” loading. Extremely configurable module that will

    automatically create and mount routers (with super powers!) on your behalf.
  8. OPENSOURCE lusca Simple, no nonsense security module. For your purposes,

    this is the module that enables csrf protection. Fully configurable.
  9. OPENSOURCE content stuff* * - not a module name. Well,

    probably is, but none of us wrote it. adaro: a dust view engine. localizr: given a template and properties files, streams out templates with content. Outputs build templates. engine-munger: returns view engines with l10n and s13n, depends on adaro and localizr. bundalo: resolve fully resolved, localized strings in app code. karka: specialization engine. … and a billion others.
  10. OPENSOURCE kraken-devtools asset precompilation on demand. If a request matches

    the defined pattern, it will be precompiled and served back. Intended to be used in development mode.
  11. OPENSOURCE kraken-devtools {$ $$"middleware":${$ $$$$"devtools":${$ $$$$$$//$...$ $$$$$$"less":${$ $$$$$$$$"module":$"kraken.devtools/plugins/less",$ $$$$$$$$"files":$"/css/**/*.css"$ $$$$$$},$

    $$$$$$"copier":${$ $$$$$$$$"module":$"kraken.devtools/plugins/copier",$ $$$$$$$$"files":$"**/*"$ $$$$$$}$ $$$$$$//$...$ $$$$}$ $$}$ }
  12. FAQs Question I keep getting errors in my app without

    any meaningful stack trace. What gives? Answer Look into your error handling middleware.
  13. FAQs Question How do I enable/disable middleware for only a

    handful of routes? Answer Leverage the meddleware “route” option.
  14. FAQs Question I have csrf enabled but it’s not working

    on some of my routes. Why? Answer Generally one of three things …