/orbit-generator

Generate fake community data for the Orbit Model

Primary LanguageRuby

orbit-generator

Generate a CSV of random community data using Ruby's excellent Faker gem.

This library is used to generate data for the Orbit Model Templates set of Airtable templates.

Usage

Clone this repo.

git clone git@github.com/orbit-love/orbit-generator.git

Install gems.

bundle install

Generate the CSV.

ruby index.rb

This will create a file called members.csv in the current directory. This file can then be uploaded to a spreadsheet or Airtable table.

Configuration

By default, the script generates a community that is roughly 1:5:20:100 ratios of ambassador:fan:observer:user. You can change that to fit your ideal fake community by altering the coefficients like in this line.

  _distribution = [[1]*50, [2]*30, [3]*15, [4]*10, [5]*10].flatten