config.json Parameters
Launch Host and Port
The “host” and “port” parameters in config.json (at the top level) determine the IP and port the project will run on. By default, the host is set to “0.0.0.0”, which is convenient for deployment; however, for development, you should change it to “127.0.0.1” or your local IP (this makes sense in rare cases when debugging something over the network).
“mysqlConnection” Section
host: 127.0.0.1 if on the same machine and not in a container.
port: Leave as is (3306), unless you have MariaDB running on a different port.
user, password: MariaDB user credentials.
database: Specify the database name for the project.
The database is automatically created during the first launch after a successful connection to the DBMS is established, if it hasn’t been created previously by other means. After creation, the database will be populated from the DB/ccs.init.sql file or DB/<ANOTHER_INITDB_FILENAME>.sql if ANOTHER_INITDB_FILENAME is specified in the init_sql_filename field of the config (see below). After the population is complete, restart the process again.
init_sql_filename: Determines which file to use for database initialization during the first launch. By default, everything is specified correctly, but you can specify an alternative file by placing it in the DB/ directory.
dateStrings: Leave unchanged; this is a setting for the mysql library.
utcOffset: Specify the time offset from UTC (Greenwich Mean Time) in minutes. For example, if “180” is specified, it is UTC+3. Negative values are allowed for time zones west of zero. By default, when creating config.json, the kernel will insert the value for your time zone (the time zone set in the OS).