Git Product home page Git Product logo

lightstreamer-example-dynamodb-client-javascript's Introduction

Lightstreamer - DynamoDB Demo - Web Client

This project includes a Lightstreamer web client that subscribes to and show data from the Lightstreamer - DynameDB Demo - Kotlin Adapter.

Live Demo

Demo ScreenShot

Details

The Demo simulates a basic departures board with a few rows which represent information on flights departing from a hypothetical airport. The data are simulated in the back-end and retrieved from an Amazon DynamoDB data source. How to retrieve this information from the DB and inject it into the Lightstreamer Server is the task of the adapter project: Lightstreamer - DynameDB Demo - Kotlin Adapter.

This page uses the Web Client SDK API for Lightstreamer to handle the communications with Lightstreamer Server. A simple user interface is implemented to display the real-time data received from Lightstreamer Server.

The demo includes the following client-side functionalities:

  • A Subscription containing only 1 item and 1 field, subscribed to in MERGE mode, and feeding a DynaGrid with the simulated current time (and yes, the time in this demo is accelerated).
  • A Subscription with a single item subscribed to in COMMAND mode feeding a DynaGrid with the current list and status of the next departing flights (according with the simulated time).

Install

If you want to install a version of this demo pointing to your local Lightstreamer Server, follow these steps:

  • As prerequisite, the Lightstreamer - DynameDB Demo - Kotlin Adapter has to be deployed on your local Lightstreamer Server instance. Please check out that project and follow the installation instructions provided in it.
  • Download this project.
  • Deploy this demo on the Lightstreamer Server (used as Web server) or in any external Web Server. If you choose the former, create the folders <LS_HOME>/pages/demos/DynamoDBDemo and copy here the contents of the src folder of this project.

The client demo configuration assumes that Lightstreamer Server, Lightstreamer Adapters, and this client are launched on the same machine. If you need to target a different Lightstreamer server, please double check the LS_HOST variable in src/js/const.js and change it accordingly.

See Also

Lightstreamer Adapters Needed by This Client

Lightstreamer Compatibility Notes

  • Compatible with Lightstreamer JavaScript Client library version 6.0 or newer.

lightstreamer-example-dynamodb-client-javascript's People

Contributors

acarioni avatar bravo27 avatar dario-weswit avatar giuseppecorti avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.