Giter Site home page Giter Site logo

local-pinpoint's Introduction

Local AWS Pinpoint Server

This is a barebones mock image for testing AWS Cognito & Pinpoint. It is ideal for Amplify JS or any other implementation of client side Pinpoint anayltics.

API

The following AWS SDK API commands are supported:

  • UpdateEndpoint: Updates and stores endpoint data for the given Cognito identity ID.
  • PutEvents: Sends event data to Pinpoint, this is then merged with the corresponding endpoint data and delivered to elasticsearch.

Docker compose usage

services:
  pinpoint:
    image: humanmade/local-pinpoint
    ports:
      - 3000
    environment:
      ELASTICSEARCH_HOST: http://elasticsearch:9200
    networks:
      - default
  elasticsearch:
    image: blacktop/elasticsearch
    ports:
      - 9200
    networks:
      - default

networks:
  default:

Index rotation

Index rotation is supported in accordance with the AWS Kinesis Firehose Elasticsearch destination options.

To enable index rotation set the INDEX_ROTATION environment variable to one of the following values: NoRotation (default), OneMonth, OneWeek, OneDay or OneHour.

Local Cognito

This image is a counterpart to local-cognito but can also be used with a live Cognito Idenitity Pool instance.

local-pinpoint's People

Contributors

dependabot[bot] avatar roborourke avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

local-pinpoint's Issues

Queue Elasticsearch writes

To better reflect the real service and also improve performance and reduce resource usage it'd be good to find a way to queue the writes to Elasticsearch up.

Can explore using a child/worker thread if it's possible to re-bind from a fresh function call.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.