Create and subscribe to events from apps or other sources. Documentation: https://docs.altinn.studio/events
These instructions will get you a copy of the events component up and running on your machine for development and testing purposes.
- .NET 8.0 SDK
- Newest Git
- A code editor - we like Visual Studio Code
- Install Azure Functions extension. You can also install the Azure Tools extension pack, which is recommended for working with Azure resources.
- Also install recommended extensions (e.g. C#)
- Podman or another container tool such as Docker Desktop
- PostgreSQL
- pgAdmin
- Install Azurite
- Install Azure Functions Core Tool
Ensure that both PostgreSQL and pgAdmin have been installed and start pgAdmin.
In pgAdmin
- Create database eventsdb
- Create the following users with password: Password (see privileges in parentheses)
- platform_events_admin (superuser, canlogin)
- platform_events (canlogin)
- Create schema events in eventsdb with owner platform_events_admin
A more detailed description of the database setup is available in our developer handbook
Clone Altinn Events repo and navigate to the folder.
git clone https://github.com/Altinn/altinn-events
cd altinn-events
-
Start Altinn Events docker container run the command
podman compose up -d --build
-
To stop the container running Altinn Events run the command
podman stop altinn-events
The events solution is now available locally at http://localhost:5080/. To access swagger use http://localhost:5080/swagger.
The Events components can be run locally when developing/debugging. Follow the install steps above if this has not already been done.
-
Navigate to src/Events, and build and run the code from there, or run the solution using you selected code editor
cd src/Events dotnet run
The events solution is now available locally at http://localhost:5080/. To access swagger use http://localhost:5080/swagger.
Start Altinn Events Functions
cd src/Altinn.Events.Functions
func start