knock-javascript/examples/nextjs-example at main · granolocks/knock-javascript · GitHub
Skip to content

Latest commit

 

History

History
 
 

README.md

Knock + Next.js example app

This example app uses Knock to power in-app notifications. It uses the Knock Node SDK and Knock React SDK.

Running locally

  1. Install dependencies from the root of the monorepo.
yarn
  1. Make sure the packages have been built by running yarn build or yarn dev from the root of the monorepo.

  2. Configure the environment variables. Copy .env.sample to .env.development.local and add the relevant API keys and channel id from your Knock dashboard.

  3. Run the example app

yarn dev
  1. Open the example app at localhost:3000.