Creating a default.json file

Upon installation, all components that require a backing data source are bound to a data source called default.json. This file does not exist by default; you must either manually create it under endeca-portal\data\endeca-data-sources, or switch to another data source in the Framework Settings component.

This task leads you through creating a default.json file based on the simplest possible model.

To create a default.json file:

  1. From the endeca-portal\data\endeca-data-sources directory, open the simple-data-source.json.sample file in a text editor.
  2. In the file, edit the server and port lines to match your data source. For example:
    {
    	"server":"localhost",
    	"port":"8080"
    }
  3. Save the file as default.json in the endeca-portal\data\endeca-data-sources directory.

After you have established your default.json file, you can log on to the Discovery Framework and begin building your application by adding components.