A tutorial to showcase realtime functionality of Pusher Channels in Gatsby
Make sure that you have the Gatsby CLI program installed:
npm install --global gatsby-cli
$ https://github.com/9jaswag/pusher-editor.git
$ cd pusher-editor
$ yarn install
- Create a
.env
file in your root directory and add the following to it:
PUSHER_APP_ID: 'your Pusher app ID'
PUSHER_APP_KEY: 'your pusher kep'
PUSHER_APP_SECRET: 'your pusher secret'
PUSHER_APP_CLUSTER: 'your pusher cluster'
- Open the app in two terminals, in one run
node server.js
andgatsby develop
in the other. - Open http://localhost:8000/ in your browser to see the app
A basic knowledge of React