migratetoflarum/fake-data

Generate fake data for testing.

Installs: 119

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

Language:JavaScript

Type:flarum-extension

0.2.0 2019-12-05 18:29 UTC

README

MIT license Latest Stable Version Total Downloads Donate

This extension allows you to generate fake data for testing your forum.

You choose number of new users, discussions and posts.

If you do not create new users, random existing users will be picked as authors for new discussions and posts.

If you do not create new discussions, random existing discussions will be picked for new posts.

A new button is added on discussions if you want to generate replies to that discussion only.

The script can be called via the API at /api/fake-data with parameters user_count, discussion_count and posts_count. If you pass zero for users or discussions, you can provide user_ids and/or discussion_ids to restrict which users/discussions can be picked.

It's probably best to not install this on your production forum!

Installation

Use Bazaar or install manually:

composer require migratetoflarum/fake-data

Updating

composer update migratetoflarum/fake-data
php flarum cache:clear

A MigrateToFlarum extension

This is a free extension by MigrateToFlarum, an online forum migration tool (launching soon). Follow us on Twitter for updates https://twitter.com/MigrateToFlarum

Need a custom Flarum extension ? Contact Clark Winkelmann !

Links