In this guide, we will add a Novu Bridge Endpoint to a AWS Lambda application and send our first test workflow.
Set up your local environment#
Start local development by running:
This opens the Novu Dashboard in Local mode - a local environment connected to your running app through a tunnel - where you can preview and test the workflows running on your machine. See Local development for details.
Install packages#
Install the Novu Framework package:
This package provides all the necessary tools to build and manage your notification workflows.
Add a Novu API Endpoint#
Create your workflow definition#
Add a novu folder in your app folder as such novu/workflows.ts that will contain your workflow definitions.
Start your application#
Start your AWS Lambda server with the Novu Endpoint configured.
If your Local Lambda application is running on other than 4000 port, restart the npx novu dev command with the port:
Test your endpoint#
Test your workflow by triggering it from the Local environment or using the Novu API:
You should see the notification being processed in the Local environment.
Deploy your application#
Deploy your application to your preferred hosting provider. Make sure the /api/novu endpoint is accessible from the internet.
For local development and testing, you can use tools like ngrok to expose your local server to the internet.
Now that you have your first workflow running, you can:
- Learn about Workflow Controls to expose no-code editing capabilities
- Explore different Channel Steps like Email, SMS, Push, and more
- Set up Action Steps like Delay and Digest
- Check out our React Email integration for building beautiful email templates