- Appwrite project with an active Database, and a GitHub and Email & Password authentication methods.
- Access your GitHub developer account.
- Novu account with an API Key.
- Novu Echo
- Stripe Test Account & Secret Key
- Clone the repository
- Install the project dependences
npm install
- Create a Appwrite project and activate the GitHub, and Email & Password authentication methods.
- You can get your GitHub client ID and secret ID here.
- Create a
.env.local
file containing the following credentials.NEXT_PUBLIC_PROJECT_ID=<YOUR_APPWRITE_PROJECT_ID> NEXT_PUBLIC_DB_ID=<YOUR_APPWRITE_DATABASE_ID> NEXT_PUBLIC_PRODUCTS_COLLECTION_ID=<YOUR_APPWRITE_COLLECTION_ID> NEXT_PUBLIC_BUCKET_ID=<YOUR_APPWRITE_BUCKET_ID> STRIPE_SECRET_KEY= NOVU_API_KEY= NOVU_SUBSCRIBER_ID= NEXT_PUBLIC_NOVU_API_KEY= NEXT_PUBLIC_NOVU_APP_ID= NEXT_PUBLIC_NOVU_SUBSCRIBER_ID=
- Start the development server by running the code snippet below.
npm run dev
- Set up Novu Echo and the workflow URL is
<your_unique_url>/api/email
npx novu-labs@latest echo
- Ensure, you have set up an Email service provider on your Novu dashboard