andrewbaisden / realtime-chart-pusher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Realtime Chart Pusher

Realtime Chart Pusher

Prerequisites

  1. Create a free account on Pusher
  2. Create a .env.local file and put it in your project root folder
  3. Create an app for your channel and then find the App Keys which you need to put in your .env.local file

See the example here:

NEXT_SECRET_PUSHER_APP_ID = "yourid"
NEXT_SECRET_PUSHER_KEY = "yourkey"
NEXT_SECRET_PUSHER_SECRET = "yoursecret"
NEXT_SECRET_PUSHER_CLUSTER = "yourlocation"

Getting Started

First, install the project dependencies with this command:

npm install
# or
yarn install

Then, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the application.

About


Languages

Language:JavaScript 95.3%Language:CSS 4.7%