Altinn platform microservice for handling notifications (mail, sms, etc) This component handles the functionality related to registering and sending notifications.
This is a backend WebAPI solution written in .NET / C# following the clean architecture principles. The solution is into four projects, each with their associated test project.
The API layer that consumes services provided by Altinn.Notifications.Core
Relevant implementations:
The domain and application layer that implements the business logic of the system.
Relevant implementations:
The infrastructure layer that implements the interfaces defined in Altinn.Notifications.Core for integrations towards 3rd-party libraries and systems.
Relevant implementations:
The persistance layer that implements repository logic.
Ensure that both PostgreSQL and pgAdmin have been installed and start pgAdmin.
In pgAdmin
A more detailed description of the database setup is available in our developer handbook
Clone Altinn Notifications repo and navigate to the folder.
git clone https://github.com/Altinn/altinn-notifications
cd altinn-notifications
Ensure that Docker has been installed and is running.
In a terminal navigate to the root of this repository
and run command podman compose -f setup-kafka.yml up -d
Kafdrop is now available at http://localhost:9000.
The Notifications components can be run locally when developing/debugging. Follow the install steps above if this has not already been done.
Navigate to src/Notifications, and build and run the code from there, or run the solution using you selected code editor
cd src/Notifications
dotnet run
The notifications solution is now available locally at http://localhost:5090/. To access swagger use http://localhost:5090/swagger.