Git Product home page Git Product logo

sfdc-subscriber's Introduction

sfdc-subscriber

A Node app that subscribes to Salesforce Platform Events via CometD.

Usage

Development

  1. Start up the client.
    cd client
    npm start
    
  2. Start up the server.
    cd server
    npm start
    

Production

The following script builds the production files, creating a dist directory. The production files include minified, production-optimized HTML and JavaScript.

cd client
npm run build

Tests

Server

Running tests with console output:

npm run test

Running tests without console output:

npm run test:silent

Running tests with coverage report:

npm run test:coverage

Running tests with coverage report and without console output:

npm run test:coverage-silent

Resources

React

Composition vs. Inheritance

Redux

Proper Typing of react-redux Connected Components Socket.io Middlware Beginner's Guide to Redux Middleware

CometD

JavaScript Documentation

Salesforce

Subscribing to Platform Events via CometD

d3.js

Documentation

Api Reference

Selection.join

Patterns and Conventions

General Update Pattern

Margin Convention

Towards Reusable Chart

Tutorials

Dashing D3.js Tutorials

D3 in Depth

Libraries

Cubism.js

Examples

scaleTime Example

D3 Timeseries with Brush

Line Chart Example

D3 Based Real Time Chart

Real Time Chart with Multiple Data Streams

Real-time multi-series time series chart data

I Make Circles

sfdc-subscriber's People

Contributors

matthewkosloski avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

sfdc-subscriber's Issues

Create a common directory for constants

There are commonly used constants in both client and server. Currently, there is a socketEvents.js file in the client and in the server. This is a problem because the constants are duplicated, thereby violating the DRY principle.

A solution is to create a common directory in the root that contains only one socketEvents.js file. At the moment, this cannot be done because Webpack, which is used internally by Create React App (CRA), only processes files in the client/src directory. Thus, in the future, we will have to replace CRA with a custom Webpack configuration.

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.