GithubHelp home page GithubHelp logo

aequorsolutions / realtime-visualization-react-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gladchinda/realtime-visualization-react-demo

0.0 0.0 0.0 79 KB

Source code for a very simple realtime data visualization application based on a poll built with Next.js, Chart.js and Pusher.

JavaScript 100.00%

realtime-visualization-react-demo's Introduction

Realtime Data Visualization (Next.js & Pusher)

You can check out the complete tutorial on the Pusher tutorial repository: REALTIME DATA VISUALIZATION USING NEXT.JS AND CHART.JS.

This project contains the source code for a very simple realtime data visualization application based on a poll.

Here is a screenshot of the application.

App Screenshot

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  1. Install Node on your machine: Ensure that you have Node and npm or Yarn installed on your machine. To install Node and npm on your machine, see the Node download page. If you prefer using Yarn as your package manager to using npm, you can get Yarn here.

  2. Create a Pusher application: Create a new application on your Pusher Dashboard to get your app credentials.

Setup Instructions

  1. Clone the repository into a new directory on your machine.

  2. Install the dependencies by running the following command from the new directory.

npm install

or using yarn

yarn install
  1. Create a .env file in the root of the new directory with the following content.
# Pusher App Credentials

PUSHER_APP_ID=YOUR_APP_ID
PUSHER_APP_KEY=YOUR_APP_KEY
PUSHER_APP_SECRET=YOUR_APP_SECRET
PUSHER_APP_CLUSTER=YOUR_APP_CLUSTER
  1. Start the app by running the following command. The app will run on port 3000 except that port is already in use.
npm run dev

For production

npm start

Built With

Here is a run-down of the core technologies used in this project.

  1. Next.js - A framework for building server-side rendered(SSR) React applications with ease. It handles most of the challenges that come with building SSR React apps.

  2. Pusher - Pusher is a technology for building apps with varying realtime needs like push notifications and pub/sub messaging. It is the engine behind the realtime ability of our data visualization app.

  3. Chart.js - Chart.js is a simple yet flexible JavaScript charting library that makes it possible to create different types of data visualization charts via a programmable interface.

  4. React - A very popular JavaScript DOM rendering framework for building scalable web applications using a component-based architecture.

Acknowledgements

realtime-visualization-react-demo's People

Contributors

gladchinda 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.