Configuring Your Application

A short tutorial that demonstrates how to configure your alt-seven application.

alt-seven configuration options tutorial

You configure your alt-seven application by passing an options structure to the a7.init method. There are a host of options that you can tailor to your needs.

The structure accepts these configuration options, listed with their data types and default values:

  • auth

    • sessionTimeout (milliseconds)
  • console

    • enabled (boolean, false)

    • wsServer (host, “”)

    • container (object, “”)

    • top (integer, 100)

    • left (integer, 500)

    • width (integer, 500)

    • height (integer, 300)

    • logging

      • logLevel (list (“ERROR,FATAL,INFO,TRACE,WARN”), “ERROR,FATAL,INFO”)
      • toBrowserConsole (boolean, false)
  • model (object, a7.model)

  • remote

    • modules ( structure, {})
  • router

    • useEvents (boolean, true)
    • routes ( object, undefined)
  • ui

    • renderer (string (Mustache, Handlebars, templateLiterals), templateLiterals )
    • timeout (milliseconds, 600000)

All options have a default value, so in the simplest example, you can call a7.init( {} );.


Last modified February 2, 2024: additions to docs - WIP (15a6699)