Local setup using Docker.
Hello Team, Could you please advise on setting up my local environment using Docker?
8 Replies
Hi @MP, I'm an AI assistant knowledgeable about Novu. While a team member is able to review this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions.
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* Deploy with Docker
* Dev Studio
* Commercial Self Host
* AWS
-----------------------------
Answer
To set up your local environment using Docker for Novu, you can follow these steps based on the official documentation:
1. Before You Begin: Ensure you have Docker and docker-compose installed on your system. Additionally, having Git installed is required to clone the Novu repository (1) .
2. Quick Start:
- Clone the Novu repository and enter the docker directory locally with the following commands:
- After running the above commands, you can visit http://localhost:4200 to start using Novu.
3. Securing Your Setup: It's important to update the
.env
file with your own secrets, especially the JWT_SECRET
, which is used by the API to generate JWT keys.
4. Configuration Notes: For simplicity, the initial setup places the database on the same machine as the servers, and uses localstack instead of S3 for storage. For production, it's recommended to decouple your database before deploying.
Remember, these are the initial steps to get started with a local Novu environment using Docker. Depending on your specific needs, such as custom installations or advanced configurations, you might want to consult the official documentation for further details.Got it. Tagging @Support for additional help.
@MP
Did you face any issue with inkeep suggested solution?
@Pawan Jain Thanks for the response, I've successfully finished setting up my local environment.
I'm currently analyzing our use case and could use your assistance. Here's the scenario: We need to send notifications to users who completed an activity today. What's the optimal method for sending these notifications?
Unfortunately, using broadcast isn't feasible because it queues all users, while we only need to target around 10 or 20 users out of a larger user base of over a lakh. Additionally, using topics isn't practical as the user data changes dynamically every day, making it impractical to manually add or remove users daily. Instead, we have a flag to indicate eligibility.
What would be the most effective approach for achieving this? Can we accomplish this using Novu?
@MP
a workflow can be triggered to multiple subscribers at once
checkout this doc
https://github.com/novuhq/novu/tree/next/packages/node#trigger-workflow-to-multiple-subscribers
Thanks for the details @Pawan Jain, I'm facing some error when i try to build api using pnpm build:api. what is the recommended pnpm version ?
@MP, you just advanced to level 1!