An open API service indexing awesome lists of open source software.

https://github.com/thenewdynamic/tnd-content-generator

A Data set generator built with Mockaroo and Hugo
https://github.com/thenewdynamic/tnd-content-generator

Last synced: 4 months ago
JSON representation

A Data set generator built with Mockaroo and Hugo

Awesome Lists containing this project

README

          

## TND Data Set

A Data Set generator built with [Mockaroo](https://www.mockaroo.com/) and Hugo

### Mocakroo

We use [Mockaroo](https://www.mockaroo.com/projects/30833) to generate the data files.

We use Hugo to browse the data files and create markdown files accordingly.

## Setup

1. Clone/Download
2. `$ hugo`
3. Navigate to `/generated_content` to see freshly generated markdown files.
## Collections

Available collections
- posts
- profiles
- events
- products

### Collection parameters

- **limit**: The number of entries to create for a given collection. Defaults to `1000`.
- **format**: A string, only `yaml`|`json` for now. Wether each content file for the collection should be created as JSON or YAML

```yaml
params:
tnd_data_gen:
format: yaml
collections:
- name: profiles
- name: posts
- name: events
- name: products
limit: 3000
```

```yaml
params:
tnd_data_gen:
format: yaml
collections:
- name: profiles
limit: 30
transformer: custom
content:
min: 1
max: 1
blocks:
- paragraph
- name: posts
limit: 140
content:
min: 1
max: 1
blocks:
min: 1
max: 5
```

### Future

1. Create a Hugo website to test drive performances
2. Generate various export files to be imported into CMS services etc...