examples/data-generator/README.md
Generates a large JSON object full of fake data for simulating the backend of a poster shop.
Used to simulate a REST / GraphQL backend in react-admin. To get a glimpse of the test data, browse the react-admin demo.
import generateData from 'data-generator-retail';
const data = generateData();
// now do whatever you want with the data...
console.log(data);
{
customers: [ /* ...900 customers */],
categories: [ /* ...12 categories */],
products: [ /* ...120 products */],
orders: [ /* ...600 orders */],
invoices: [ /* ...about 500 invoices */],
reviews: [ /* ... */],
}
Data Generator for Retail is licensed under the MIT License, sponsored and supported by marmelab.