{"id":21365047,"url":"https://github.com/altinn/altinn-events","last_synced_at":"2025-10-05T09:25:50.273Z","repository":{"id":37102994,"uuid":"462032490","full_name":"Altinn/altinn-events","owner":"Altinn","description":"Altinn platform microservice for handling events","archived":false,"fork":false,"pushed_at":"2025-08-22T13:27:33.000Z","size":1533,"stargazers_count":2,"open_issues_count":38,"forks_count":1,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-08-22T14:24:27.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Altinn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-21T21:08:59.000Z","updated_at":"2025-08-21T11:01:57.000Z","dependencies_parsed_at":"2023-10-23T15:01:43.420Z","dependency_job_id":"2be68cdc-5e71-4cd7-b0d7-9fcfe8a3baa4","html_url":"https://github.com/Altinn/altinn-events","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Altinn/altinn-events","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Faltinn-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Faltinn-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Faltinn-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Faltinn-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Altinn","download_url":"https://codeload.github.com/Altinn/altinn-events/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Faltinn-events/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273100362,"owners_count":25045697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T07:09:12.220Z","updated_at":"2025-10-05T09:25:50.266Z","avatar_url":"https://github.com/Altinn.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Altinn Events\n\nCreate and subscribe to events from apps or other sources.\nDocumentation: https://docs.altinn.studio/events\n\n## Build status\n[![Events build status](https://dev.azure.com/brreg/altinn-studio/_apis/build/status/altinn-platform/events-master?label=altinn/events)](https://dev.azure.com/brreg/altinn-studio/_build/latest?definitionId=136)\n\n\n## Getting Started\n\nThese instructions will get you a copy of the events component up and running on your machine for development and testing purposes.\n\n### Prerequisites\n\n1. [.NET 9.0 SDK](https://dotnet.microsoft.com/download/dotnet/9.0)\n2. Newest [Git](https://git-scm.com/downloads)\n3. A code editor - we like [Visual Studio Code](https://code.visualstudio.com/download)\n   - Install [Azure Functions extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions). You can also install the [Azure Tools extension pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-node-azure-pack), which is recommended for working with Azure resources.\n   - Also install [recommended extensions](https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions) (e.g. [C#](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp))\n4. [Podman](https://podman.io/) or another container tool such as Docker Desktop\n5. [PostgreSQL](https://www.postgresql.org/download/)\n6. [pgAdmin](https://www.pgadmin.org/download/)\n7. Install [Azurite](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio%2Cblob-storage#install-azurite)\n8. Install [Azure Functions Core Tool](https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=windows%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps\u0026pivots=programming-language-powershell#install-the-azure-functions-core-tools)\n\n### Setting up PostgreSQL\n\nEnsure that both PostgreSQL and pgAdmin have been installed and start pgAdmin.\n\nIn pgAdmin\n- Create database _eventsdb_\n- Create the following users with password: _Password_ (see privileges in parentheses)\n  - platform_events_admin (superuser, canlogin)\n  - platform_events (canlogin)\n- Create schema _events_ in eventsdb with owner _platform_events_admin_\n\nA more detailed description of the database setup is available in [our developer handbook](https://docs.altinn.studio/community/contributing/handbook/postgres/)\n\n### Cloning the application\n\nClone [Altinn Events repo](https://github.com/Altinn/altinn-events) and navigate to the folder.\n\n```bash\ngit clone https://github.com/Altinn/altinn-events\ncd altinn-events\n```\n\n### Running the application in a docker container\n\n- [Start Azurite](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio%2Cblob-storage#run-azurite)\n\n- Start Altinn Events docker container run the command\n\n  ```cmd\n  podman compose up -d --build\n  ```\n\n- To stop the container running Altinn Events run the command\n\n  ```cmd\n  podman stop altinn-events\n  ```\n\nThe events solution is now available locally at http://localhost:5080/.\nTo access swagger use http://localhost:5080/swagger.\n\n### Running the application with .NET\n\nThe Events components can be run locally when developing/debugging. Follow the install steps above if this has not already been done.\n\n- [Start Azurite](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio%2Cblob-storage#run-azurite)\n\n- Navigate to _src/Events_, and build and run the code from there, or run the solution using you selected code editor\n\n  ```cmd\n  cd src/Events\n  dotnet run\n  ```\n\nThe events solution is now available locally at http://localhost:5080/.\nTo access swagger use http://localhost:5080/swagger.\n\n### Running functions\n\n- [Start Azurite](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio%2Cblob-storage#run-azurite)\n  \nStart Altinn Events Functions\n```bash\ncd src/Events.Functions\nfunc start\n```\n\n#### Integration tests that require Azurite\nSome integration tests require Azurite to run. They are tagged with a custom attribute and will be skipped unless the environment variable `ENABLE_AZURITE_TESTS` is set to `1` or `true`.\n\nTo run them locally:\n1. Start Azurite.\n2. Set `ENABLE_AZURITE_TESTS`.\n3. Run the tests from your Test Explorer or via CLI:\n\n   Windows (PowerShell):\n   ```powershell\n   $env:ENABLE_AZURITE_TESTS = \"1\"\n   dotnet test test/Altinn.Platform.Events.Functions.Tests\n   ```\n\n   macOS/Linux (bash/zsh):\n   ```bash\n   export ENABLE_AZURITE_TESTS=1\n   dotnet test test/Altinn.Platform.Events.Functions.Tests\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltinn%2Faltinn-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltinn%2Faltinn-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltinn%2Faltinn-events/lists"}