setupDevMode = async () => {
  const dbPath = path.join(defaultDataPath, "scdb.sqlite");
  await fs.promises.mkdir(defaultDataPath, { recursive: true });
  const session_secret = gen_password();
  const jwt_secret = genJwtSecret();
  await write_connection_config({
    sqlite_path: dbPath,
    session_secret,
    jwt_secret,
  });

  if (!fs.existsSync(dbPath)) {
    unloadModule("@saltcorn/data/db");
    unloadModule("@saltcorn/data/db/reset_schema");
    const reset = require("@saltcorn/data/db/reset_schema");
    await reset(true);
    console.log("\nDone. Run saltcorn by typing:\n\n  saltcorn serve\n");
  }
}
Set up platform run mode (dev - run manually, server - run as system service)
@returns {Promise<void>}