GithubHelp home page GithubHelp logo

bmhaskar / react_realtime_dashboard Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 23.95 MB

React SSR and realtime dashboard with socket.io.

JavaScript 96.78% CSS 3.22%
react server-side-rendering socket-io visualization c3js

react_realtime_dashboard's Introduction

react_realtime_dashboard

React SSR and realtime dashboard with socket.io.

Build Status codecov.io

It is an example to demonstrate implementation for realtime dashboard building.

Demo

Demo

Libraries

  1. React - For frontend rendering
  2. Next.js - For server side rendering
  3. C3.js - For visualisation / chart
  4. Socket.io - For real-time behaviour
  5. Express - For server request processing
  6. Jest - For testing

Dir Structure

  1. lib/ - contains server side code
  2. components/ - contains the internal reusable components
  3. pages/ - contans tha containers which get data from server in SSR with the help of getInitialProps
  4. _tests_/ - contains the tests

How to run tests

yarn run test

How to run tests and collect coverage

yarn run test-coverage

How to start development server

yarn run dev

How to export a build

yarn run build

How to start production server

yarn run start

How to send a request to update dashboard

curl -X POST \ https://reactrealtimedashboard-goqltamcsv.now.sh \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'postman-token: d5c0c816-26c8-3866-ae49-7fbe394c743a' \ -d '{"events": [{"uniqueDeviceId": "1", "time": "2017-10-23 18:10:02", "level": 15}] }'

react_realtime_dashboard's People

Contributors

bmhaskar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.