Skip to main content
In this guide, we will add a Novu Bridge Endpoint to a Svelte application and send our first test workflow.
1

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.
2

Install packages

Install the Novu Framework package:
This package provides all the necessary tools to build and manage your notification workflows.
3

Add a Novu API Endpoint

src/routes/api/novu/+server.ts
4

Configure your secret key

Add your Novu secret key to your environment variables:
.env
5

Create your workflow definition

Add a novu folder in your lib folder as such src/lib/novu/workflows.ts that will contain your workflow definitions.
app/novu/workflows.ts
6

Start your application

To start your Svelte server with the Novu Endpoint configured, run the following command:
Svelte application default port is 5173. For that to work, restart npx novu dev and point it to the right port:
7

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.
8

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: