diff --git a/mint.json b/mint.json index 196e6f4c..1850c325 100644 --- a/mint.json +++ b/mint.json @@ -80,7 +80,8 @@ "quickstart/remix", "quickstart/express", "quickstart/nuxt", - "quickstart/h3" + "quickstart/h3", + "quickstart/lambda" ] }, { diff --git a/quickstart/h3.mdx b/quickstart/h3.mdx index 63105c21..f26d88a8 100644 --- a/quickstart/h3.mdx +++ b/quickstart/h3.mdx @@ -44,7 +44,7 @@ In this guide, we will add a Novu [Bridge Endpoint](/concepts/endpoint) to a H3 Start your H3 server with the Novu Endpoint configured. - If your Remix application is running on other than `4000` port, restart the `npx novu dev` command with the port: + If your H3 application is running on other than `4000` port, restart the `npx novu dev` command with the port: ```tsx npx novu@latest dev --port diff --git a/quickstart/lambda.mdx b/quickstart/lambda.mdx new file mode 100644 index 00000000..a25cc835 --- /dev/null +++ b/quickstart/lambda.mdx @@ -0,0 +1,55 @@ +--- +title: "How to send notifications with AWS Lambda and Novu Framework" +sidebarTitle: "AWS Lambda" +--- + +import LocalStudio from "/snippets/quickstart/start-studio.mdx"; +import DeployApp from "/snippets/quickstart/deploy.mdx"; +import TestStep from "/snippets/quickstart/test.mdx"; +import PackagesStep from "/snippets/quickstart/packages.mdx"; +import SecretStep from "/snippets/quickstart/secret.mdx"; +import NextStepsStep from "/snippets/quickstart/next-steps.mdx"; +import WorkflowStep from "/snippets/quickstart/workflow.mdx"; + +In this guide, we will add a Novu [Bridge Endpoint](/concepts/endpoint) to a AWS Lambda application and send our first test workflow. + + + + + + + ```typescript src/functions/api/novu.ts + import { serve } from "@novu/framework/lambda"; + import { workflow } from "@novu/framework"; + import { testWorkflow } from "../novu/workflows"; + + module.exports.novu = serve({ + workflows: [testWorkflow], + }); + ``` + + + + + + Add a `novu` folder in your app folder as such `novu/workflows.ts` that will contain your workflow definitions. + + + + + + + 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: + + ```tsx + npx novu@latest dev --port + ``` + + + + + + +