3.2 Application Configuration - mmig/mmir GitHub Wiki

Application Configuration (www/config)

As the name implies this folder contains the configurations of your application. In the current version of MMIR config/ consists of the following contents:

  • configuration.json: This is a well-formatted JSON file, which contains the main configuration of MMIR application. For example to specify the default language of your application as German add the following line to configuration.json:

     "language": "de"
    

    By convention, languages should be referred to by their 2-letter language code [♦], e.g. use en for English.

  • config/languages/: Holds language specific configurations; see the following section Application Language Configurations.

  • config/statedef/: Contains the SCXML files for the DialogEngine and the InputEngine; see the following section Application State Definitions.

  • directories.json: This is a well-formatted JSON file, which contains a list of files that hold the implementations of the models, views, and controllers of the application, as well as language-specific resources (e.g. dictionaries, grammars).

    The framework uses this information for automatically loading the models, views, controllers, plugins, and language resources at startup. The directories.json file can be created using the project's ANT build.xml; see section Building MMIR StarterKit.


< previous: "The WWW Directory" | next: "Application Language Configuration" >


[♦] cf. ISO 639-1 specifiaction