- Create a free account on Pusher
- Create a
.env.local
file and put it in your project root folder - 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"
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.