React SSR and realtime dashboard with socket.io.
It is an example to demonstrate implementation for realtime dashboard building.
- React - For frontend rendering
- Next.js - For server side rendering
- C3.js - For visualisation / chart
- Socket.io - For real-time behaviour
- Express - For server request processing
- Jest - For testing
- lib/ - contains server side code
- components/ - contains the internal reusable components
- pages/ - contans tha containers which get data from server in SSR with the help of getInitialProps
- _tests_/ - contains the tests
yarn run test
yarn run test-coverage
yarn run dev
yarn run build
yarn run start
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}] }'