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
- Host: GitHub
- URL: https://github.com/thenewdynamic/tnd-content-generator
- Owner: theNewDynamic
- License: mit
- Created: 2022-02-03T18:50:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-08T21:19:51.000Z (over 4 years ago)
- Last Synced: 2025-03-02T21:28:08.510Z (over 1 year ago)
- Language: HTML
- Size: 144 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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...