Applipress config.json file
The config.json
file is
a crucial component of the Applipress application, acting as the
central configuration file. Located within the
./config/applipress/
directory, this JSON file enables users to customize the
application's behavior and manage project tracking efficiently.
Here’s a closer look at its structure and functionalities:
Initial Structure
Upon initial setup, the
config.json
file
presents the following default configuration:
Configuration Parameters
-
globalFolder
: Specifies the directory path where the templates used for source generation are stored. This allows for the integration of custom templates tailored to your development needs. -
currentProjectId
: Indicates the ID of the currently active project. This field is dynamically updated by Applipress. -
debug
: A boolean flag that, when set totrue
, enables the debug mode. This provides visibility into the JHipster log inside the Applipress Docker container, aiding in troubleshooting and development. -
defaultProjectsDir
: Defines the default directory path where projects are stored, serving as the primary location for project files. -
projects
: An array that holds objects representing the projects created within Applipress. Each object includes the project’sid
,name
,projectFolder
, andmodelFolder
.
User-Changeable Properties
While
config.json
contains
several settings, users are encouraged to modify only the
globalFolder
,
debug
, and
defaultProjectsDir
properties. The
projects
array is
automatically managed by Applipress and should generally not
be edited manually to ensure the integrity and proper tracking
of projects.
Example with Multiple Projects
In an Applipress environment with several projects, the
config.json
file may
resemble the following structure, showcasing the variety of
projects managed by the application: