Skip to content
This repository was archived by the owner on Aug 22, 2022. It is now read-only.

orbit-love/orbit-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate fake community data for the Orbit Model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages