Giter VIP home page Giter VIP logo

courier-raffle's Introduction

This is a Next.js project that is integrated with Courier.

Prerequisites

In order to run this app, you'll need a Courier account.

Getting Started

Clone the repo and install dependencies:

npm install

Create a .env.local file at the root of the project to store secrets and configuration for this app.

Configure Courier Account

Log-in to your Courier Account and go to Settings / API Keys. Copy the Production API key and store it as an envvar:

COURIER_AUTH_TOKEN=pk_prod_xxx

Go to Users and select (or create) a user that we can use to power the notifications and toasts for the web app. Copy the user's ID and store it as an envvar:

NEXT_PUBLIC_COURIER_USER=abc

Go to Channels, scroll to SMS and select the Twilio provider. Configure it using your Twilio Account SID, Auth Token and a From phone number or Messaging Service SID. Click Save.

Go back to Channels, scroll to email and select the Postmark provider. Configure it using a Server Token, From email address and Message Stream. Click Save.

Go back to Channels, scroll to "other" and install the Courier provider. Copy the Client Key (Public) and store it as an envvar:

NEXT_PUBLIC_COURIER_CLIENT_KEY=zzz

Go to Users and click "+ List" to create a new list. Name it whatever you like. Copy the list ID and store it as an envvar:

COURIER_LIST_ID=yyy

Configure webhooks

Define a username and password to use to secure your Twilio and Postmark webhooks and store it as an envvar:

WEBHOOK_AUTH=username:password

Configure your Twilio webhook to use the username and password by specifying a URL like this:

https://username:[email protected]/twilio

Configure your Postmark webhook in the same way.

courier-raffle's People

Contributors

crtr0 avatar

Watchers

Seth Carney avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.