Adapted from https://www.smashingmagazine.com/2019/03/realtime-charts-graphql-postgres/
- Postgres with Timescale extension
- Hasura GraphQL Engine
- React app using Apollo client
- Start Postgres and Hasura:
docker-compose up -d
http://localhost:8080/console to access Hasura GraphQL Engine console.
- Start the React app
cd time-series-chart
npm start
http://localhost:3000 to open the app.
- Create data to graph:
cd scripts
node data-generator.js