0.0.15 • Published 1 year ago

@mvogelgesang/datacloudgenerator v0.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Data Cloud Generator

A CLI utility to generate data that is then pushed to S3 and can be consumed by Salesforce Data Cloud.

Installation

npm i -g @mvogelgesang/datacloudgenerator

Create dcGenerator_config.js

module.exports = {
    awsBucketName: "your-bucket-name",
    awsProfileName: "your-profile-name",
    awsRegion: "your-region",
  };

Data Model

erDiagram
    CUSTOMER ||--o{ ORDER : "places an online"
    CUSTOMER ||--o{ STORE-PURCHASE : "makes a"
    STORE-PURCHASE ||--|{ STORE-PURCHASE-ITEM: "has"
    PRODUCT ||--o{ STORE-PURCHASE-ITEM : "has"
    ORDER ||--|{ ORDER-ITEM : includes
    PRODUCT ||--o{ ORDER-ITEM : "ordered in"
    AD }o--o{ CUSTOMER: "viewed by"
    ECOMMERCE-ANALYTICS }o--o{ PRODUCT: "interacted"
    ECOMMERCE-ANALYTICS }o--o{ CUSTOMER: "interacted"
    STORE ||--|{ STORE-PURCHASE: "made at"

Use

dcGen is the global namespace followed by the data type and the number of records you want to generate. If the number of records is blank, it defaults to 10.

Generate online advertising data dcGen ad 100

Generate customer data dcGen customer 100

Generate ecommerce analytics data dcGen ecommerce 100

Generate Order and Order Item data dcGen order 5

Generate Product data dcGen product 100

Generate Store Purchase data dcGen store-purchase 3

0.0.14

1 year ago

0.0.15

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago