open-index/open-npm huggingface dataset:
npm package: @jtviegas/dyndbstore
Description: store facade to a database, currently only DynamoDb implementation
Author: Joao Tiago Viegas
Latest version: 3.4.0

![master build & test](https://github.com/jtviegas/dyndbstore/workflows/master%20build%20&%20test/badge.svg?branch=master)
![release build, test & publish](https://github.com/jtviegas/dyndbstore/workflows/release%20build,%20test%20&%20publish/badge.svg?branch=release)
[![Coverage Status](https://coveralls.io/repos/github/jtviegas/dyndbstore/badge.svg?branch=master)](https://coveralls.io/github/jtviegas/dyndbstore?branch=master)

dyndbstore
=========

store facade to DynamoDb

## Installation

  `npm install @jtviegas/dyndbstore`

## Usage

### required environment variables
    
    - region - aws region ( not mandatory, default: eu-west-1 )
    - AWS_ACCESS_KEY_ID ( mandatory )
    - AWS_SECRET_ACCESS_KEY ( mandatory )
    - DYNDBSTORE_TEST_ENDPOINT ( not mandatory, for testing purposes )

### code snippet example

    var store = require('@jtviegas/dyndbstore');
    store.getObjsCount(table, (e, r) => {
                if(e)
                    done(e);
                else {
                    expect(r).to.equal(0);
                    done(null);
                }
            });
    
## Tests

  `npm test`

## Contributing

    just help yourself and submit a pull request
npm package: @jtviegas/entity-loader-service
Description: a service that handles entities persistence from a cloud bucket into a store, reacting to the event triggered by the update of the bucket content
Author: Joao Tiago Viegas
Latest version: 0.0.26

[![Build Status](https://travis-ci.org/jtviegas/store-loader-service.svg?branch=master)](https://travis-ci.org/jtviegas/store-loader-service)
[![Coverage Status](https://coveralls.io/repos/github/jtviegas/store-loader-service/badge.svg?branch=master)](https://coveralls.io/github/jtviegas/store-loader-service?branch=master)

entity loader service
=========

a service that handles entities persistence from a cloud bucket into a store, reacting to the event triggered by the update of the bucket content

## Installation

  `npm install @jtviegas/entity-loader-service`

## Usage

### required environment variables
  - AWS_ACCESS_KEY_ID ( mandatory )
  - AWS_SECRET_ACCESS_KEY ( mandatory )
  - region: aws region ( optional, default = eu-west-1 )
  - DYNDBSTORE_TEST_ENDPOINT ( optional, just for testing purposes )
  - BUCKETWRAPPER_TEST_ENDPOINT ( optional, just for testing purposes )

### code snippet example

    ...
    const service = require('@jtviegas/store-loader-service');
    ...
    service.load(app, environment, bucket, callback);
    
  Check the test folder in source tree.
  
## Tests

    npm test

## Contributing

just help yourself and submit a pull request
npm package: @jtviegas/entity-service
Description: a generic crud service for entities
Author: Joao Tiago Viegas
Latest version: 0.0.2

[![Build Status](https://travis-ci.org/jtviegas/entity-service.svg?branch=master)](https://travis-ci.org/jtviegas/entity-service)
[![Coverage Status](https://coveralls.io/repos/github/jtviegas/entity-service/badge.svg?branch=master)](https://coveralls.io/github/jtviegas/entity-service?branch=master)

entity-service
=========

a generic crud service for entities

![overview][overview]


## Installation

  `npm install @jtviegas/entity-service`

## Usage

### required environment variables
    
    - region - aws region ( not mandatory, default: eu-west-1 )
    - AWS_ACCESS_KEY_ID ( mandatory )
    - AWS_SECRET_ACCESS_KEY ( mandatory )
    - DYNDBSTORE_TEST_ENDPOINT ( not mandatory, for testing purposes )

### code snippet example

    let service = require('@jtviegas/entity-service');
    let event = {
                    httpMethod: 'GET'
                    , pathParameters: {
                        entity: ENTITY
                        , app: APP
                        , env: ENV
                    }
                };
    service.handler(event, context, (e,d)=>{
        if(e)
            done(e);
        else {
            let r=JSON.parse(d.body);
            expect(r.length).to.equal(TEST_ITERATIONS);
            done(null);
        }
    });

    
## Tests

  `npm test`

## Contributing

    just help yourself and submit a pull request

[overview]: assets/overview.png "overview"
npm package: @jtviegas/entity-store
Description: a component that works as a store to generic entities
Author: Joao Tiago Viegas
Latest version: 0.0.2


entity-store
=========

a component that works as a store to generic entities

## Installation

  `npm install @jtviegas/entity-store`

## Usage

### required environment variables
    
    - region - aws region ( not mandatory, default: eu-west-1 )
    - AWS_ACCESS_KEY_ID ( mandatory )
    - AWS_SECRET_ACCESS_KEY ( mandatory )
    - DYNDBSTORE_TEST_ENDPOINT ( not mandatory, for testing purposes )

### code snippet example

    let store = require('@jtviegas/entity-store');
    store.entitiesRetrieval(APP, ENV, ENTITY, (e,d)=>{
                    logger.info("entitiesRetrieval: %s", d);
                    if(e)
                        done(e);
                    else {
                        expect(d.length).to.equal(TEST_ITERATIONS);
                        done(null);
                    }
                });

    
## Tests

  `npm test`

## Contributing

    just help yourself and submit a pull request
npm package: @jtviegas/jscommons
Description: library comprising reusable utility code, both for browser and for node server
Author: Joao Tiago Viegas
Latest version: 0.3.1



# jscommons
library comprising reusable utility code, both for browser and for node server

## Installation
    npm install @jtviegas/jscommons

## Usage
    ```
    const commons = require('@jtviegas/jscommons');

    new commons.ServerError(...)
    commons.getTableNameV1(..,..,..)
    ```

## Contributing
  just help yourself and submit a pull request
npm package: @jtviegas/store-functions
Description: functions for a data store api
Author: Joao Tiago Viegas
Latest version: 1.0.0

[![Build Status](https://travis-ci.org/jtviegas/store-functions.svg?branch=master)](https://travis-ci.org/jtviegas/store-functions)
[![Coverage Status](https://coveralls.io/repos/github/jtviegas/store-functions/badge.svg?branch=master)](https://coveralls.io/github/jtviegas/store-functions?branch=master)

# store-functions
functions for a data store api

## Installation

  `npm install @jtviegas/store-functions`
  
## Usage

### required environment variables or configuration properties
  - STOREFUNCTIONS_AWS_REGION
  - STOREFUNCTIONS_AWS_DB_ENDPOINT - optional, used for local testing;
  - STOREFUNCTIONS_AWS_ACCESS_KEY_ID
  - STOREFUNCTIONS_AWS_ACCESS_KEY
  - STOREFUNCTIONS_ENTITY_LIST
  - STOREFUNCTIONS_TENANT
  - STOREFUNCTIONS_ENV_LIST

### code snippet example

    let config = {
        STOREFUNCTIONS_AWS_REGION: 'eu-west-1'
        , STOREFUNCTIONS_AWS_ACCESS_KEY_ID: process.env.ACCESS_KEY_ID
        , STOREFUNCTIONS_AWS_ACCESS_KEY: process.env.ACCESS_KEY
        , STOREFUNCTIONS_ENTITY_LIST: 'item, part'
        , STOREFUNCTIONS_TENANT: 'xpto'
        , STOREFUNCTIONS_ENV_LIST: 'production,development'
    };

    const functions = require('@jtviegas/store-functions')(config);
    let event = {
                    httpMethod: 'GET'
                    , pathParameters: {
                        entity: 'item'
                    }
                    , queryStringParameters: {
                        env: 'development'
                    }
                };
    functions.handler(event, context, (e,d)=>{
        if(e)
            done(e);
        else {
            let r=JSON.parse(d.body);
            expect(r.length).to.equal(A_NUMBER);
            done(null);
        }
    });

Check the test folder in source tree.

## Tests

  `npm test`

## Contributing

just help yourself and submit a pull request
npm package: @jtviegas/store-loader-service
Description: a service that handles entities persistence from a cloud bucket into a store, reacting to the event triggered by the update of the bucket content
Author: Joao Tiago Viegas
Latest version: 0.0.25

[![Build Status](https://travis-ci.org/jtviegas/store-loader-service.svg?branch=master)](https://travis-ci.org/jtviegas/store-loader-service)
[![Coverage Status](https://coveralls.io/repos/github/jtviegas/store-loader-service/badge.svg?branch=master)](https://coveralls.io/github/jtviegas/store-loader-service?branch=master)
store loader service
=========

a service that handles entities persistence from a cloud bucket into a store, reacting to the event triggered by the update of the bucket content

## Installation

  `npm install @jtviegas/store-loader-service`

## Usage

### required environment variables or configuration properties
  - STORELOADERSERVICE_AWS_REGION
  - STORELOADERSERVICE_AWS_ACCESS_KEY_ID
  - STORELOADERSERVICE_AWS_ACCESS_KEY
  - STORELOADERSERVICE_DATA_DESCRIPTOR_FILE
  - for testing purposes: STORELOADERSERVICE_TEST: {
                                    bucket_endpoint: 'http://localhost:5000'
                                    , store_endpoint: 'http://localhost:8000'
                                }
### code snippet example

    ...
    const config = {
        STORELOADERSERVICE_AWS_REGION: 'eu-west-1'
            , STORELOADERSERVICE_AWS_ACCESS_KEY_ID: process.env.ACCESS_KEY_ID
            , STORELOADERSERVICE_AWS_ACCESS_KEY: process.env.ACCESS_KEY
            , STORELOADERSERVICE_DATA_DESCRIPTOR_FILE: 'data.spec'
    }
    const service = require('@jtviegas/store-loader-service')(config);
    ...
    service.load(app, entity, environment, bucket, callback);
    
  Check the test folder in source tree.
  
## Tests

    npm test

## Contributing

just help yourself and submit a pull request