CreateFiles

Overview

This script reads a dbdata.json file that contains schema information for various data groups and generates individual JSON files for each group in the db directory. Each JSON file is named according to its group and is initialized as an empty array.

Prerequisites

  • Python 3.8 or higher is recommended. You can download the latest version of Python from the official Python website.

Script Details

The script performs the following tasks:

  1. Reads the dbdata.json file to get schema information.
  2. Creates a separate JSON file for each data group defined in the schema.
  3. Initializes each file with an empty array.

Usage

  1. Run the Script: Open a terminal and run the script:
    python ./scripts/createfiles.py