Skip to content

trycourier/react-in-app-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Courier React In-App Toast Example

This repository is an example React app bootstrapped with Create React App with Typescript to demo the functionality of the @trycourier/react-toast and @trycourier/react-inbox.

@trycourier/react-provider is a dependency that handles all the authentication and integration with the Courier backend.

Online Demo

Check it out here

You can quickly configure and trigger a simple Toast notification on this page. To run this locally, you will need a Courier account and enable the Courier Push integration.

Running Locally

Prerequisites to run the app:

  • Node.js (v18)
  • yarn

Clone the repository and install the dependencies:

$ yarn install

Fill in your Courier Client Key and Courier Test or Production Key in .env file. Find them in API Keys

cp .env.example .env

Start the dev server:

$ yarn develop