Skip to content

Latest commit

 

History

History
110 lines (68 loc) · 3.24 KB

README.md

File metadata and controls

110 lines (68 loc) · 3.24 KB

Data generator

You can generate fake data based upon the data dictionaries included.

Prerequisites

You need the following tools to use the data-generator:

Installation

The installation of the different packages is more or less the same over different platforms. We still have documentation for Mac and Windows.

PLease use node version =< v10.x

Mac - installation

Download it from npm. Install the package by clicking on it. If you already installed NodeJS on your system you can switch version (if needed) by using NVM. Please check: https://nvm.sh.

When you have installed NodeJS you can run the following command on the commandline in the terminal:

npm install fakeit -g

There you are all set to use fakeit.

If you do not have git on your system, download it here: git. Execute the installer.

Then on the commandline you can execute this:

git clone https://github.com/lifecycle-project/analysis-tools.git

Now you are all set to generate fake data.

Windows - installation

Download it from npm. Install the package by clicking on it. If you already installed NodeJS on your system you can switch version (if needed) by using NVM. Please check: https://nvm.sh.

When you have installed NodeJS you can run the following command on the commandline in the terminal:

npm install fakeit -g

There you are all set to use fakeit.

You will have to clone this repository to obtain the models for generating fake data.

If you do not have git on your system, download it here: git. Execute the installer.

Then on the commandline you can execute this:

git clone https://github.com/lifecycle-project/analysis-tools.git

Now you are all set to generate fake data.

Usage

Generate the fake data based upon the dictionaries that are in the dictionaries directory. There is currently 1 version of the dictionary: v1_0.

Mac

Open a terminal and navigate to the ~/lifecycle-project/analysis-tools/ repository:

cd ~/lifecycle/analysis-tools/data-generator; 

fakeit directory output --verbose --count 3000 --format csv dictionaries #(to generate specific file /directory/file)

You can check the help by executing this command:

fakeit -h

The files will be generated in the output directory.

Windows

Open a commandline interface (execute cmd.

Navigate to the ~/lifecycle-project/analysis-tools repository:

cd ~/lifecycle/analysis-tools/data-generator; 

fakeit directory output --verbose --count 3000 --format csv dictionaries/

If you need more memory you need to add this flag to the command:

NODE_OPTIONS=--max_old_space_size=8192 && fakeit directory output --verbose --count 3000 --format csv dictionaries/

You can check the help by executing this command:

fakeit -h

The files will be generated in the output directory.