1.0.0 • Published 4 years ago

task-views v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Task Generate Views

This task generate all views from Events Bag and UnifiedEvents.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

This package is dependent of Tactile Google APIs package.

This package is dependent of Tactile Generic View Generator package.

Logging system is dependent of Tactile Node Task Logger.

Node version: v10.18.1

Installing

Run npm command.

npm install @tactileentertainment/generic-view-generator

End with an example of getting some data out of the system or using it for a little demo

Running the tests

Explain how to run the automated tests for this system

Break down into end to end tests

All the tests will be here BETA

npm test

Usage

The system is full automatic, it runs based on the configurations listed below:

tasks configuration

TypeDefaultValues
Array*EventsBag unifiedEvents

apps configuration

TypeDefaultValues
Array*beebrilliant beebrilliantblast cookiecats cookiecatsblast cookiecatspop discoducks flowergarden garfieldfoodtruck garfieldsnacktime magicnightfall simonscat simonscatgardentime simonscatpoptime

Views definition

Events Bag

Source: ./src/config/eventsBag/[appName].js
const [DATASETNAME] = {
    projectName: "[Project name]",
    eventName: "[Dataset Name]",
    sourceDataset: "[Source Dataset Name]",
    destinationDataset: "[Destination Dataset Name]",
    sourceTables: [
        "[Table 1]",
        "[Table 2]",
        "...",
        "[Table N]"
    ],
        options: { // Optional
            casts: {
                int64:   ['Field 1', 'Field 2', ...,  'Field N'],
                string:  ['Field 1', 'Field 2', ...,  'Field N'],
                boolean: ['Field 1', 'Field 2', ...,  'Field N'],
                float64: ['Field 1', 'Field 2', ...,  'Field N']
            }
        },
        description: '' // Optional
};

Unified Events

Source: ./src/config/unifiedEvents/[appName].js