{"id":21365133,"url":"https://github.com/altinn/altinn-receipt","last_synced_at":"2026-01-18T19:01:58.991Z","repository":{"id":55341787,"uuid":"462035188","full_name":"Altinn/altinn-receipt","owner":"Altinn","description":"Altinn platform microservice for handling receipts","archived":false,"fork":false,"pushed_at":"2024-04-13T16:29:03.000Z","size":11498,"stargazers_count":0,"open_issues_count":11,"forks_count":3,"subscribers_count":18,"default_branch":"main","last_synced_at":"2024-04-14T06:54:11.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-02-21T21:19:45.000Z","updated_at":"2024-04-15T07:39:19.402Z","dependencies_parsed_at":"2023-10-12T16:45:12.130Z","dependency_job_id":"f30ffed9-515c-4d64-b98d-5294b513fa0b","html_url":"https://github.com/Altinn/altinn-receipt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Faltinn-receipt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Faltinn-receipt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Faltinn-receipt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Faltinn-receipt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Altinn","download_url":"https://codeload.github.com/Altinn/altinn-receipt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399826,"owners_count":20932875,"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","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:49.591Z","updated_at":"2026-01-18T19:01:58.964Z","avatar_url":"https://github.com/Altinn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Altinn Platform Receipt\n\n## Build status\n[![Receipt build status](https://dev.azure.com/brreg/altinn-studio/_apis/build/status/altinn-platform/receipt-master?label=platform/receipt)](https://dev.azure.com/brreg/altinn-studio/_build/latest?definitionId=58)\n\n## Getting Started\n\nThese instructions will get you a copy of the receipt 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. [Node LTS](https://nodejs.org/en/)\n3. Newest [Git](https://git-scm.com/downloads)\n4. A code editor - we like [Visual Studio Code](https://code.visualstudio.com/download)\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))\n5. [Podman](https://podman.io/) or another container tool such as Docker Desktop\n\n#### Running Platform Receipt Locally\n\nThe platform receipt component need to be run in **Docker**.\n\n### Cloning the application\nClone [Altinn Receipt repo](https://github.com/Altinn/altinn-receipt) and navigate to the folder.\n\n```bash\ngit clone https://github.com/Altinn/altinn-receipt\ncd altinn-receipt\n```\n__Prerequisite__\n1. This **Receipt** needs `app-localtest` for backend services. Before starting the `app-localtest` some modification would be needed in the docker-compose.yml file to set a couple of environment variables.\n2. Also an app from **Altinn Studio** is needed for creating data that should be presented in the **Receipt**. \n\n\n__Process__\n\n1. **`app-localtest`**: Before starting `app-localtest` add these below lines to the `environment` section of `altinn_localtest` in the `docker-compose.yml` file of the **`app-localtest`**:\n    ```\n    - PlatformSettings__ApiAuthorizationEndpoint=http://host.docker.internal:5101/authorization/api/v1/\n    - AuthnGeneralSettings__PlatformEndpoint=http://host.docker.internal:5101/\n    ```\n    After adding these the section `altinn_localtest` in the `docker-compose.yml` file of the **`app-localtest`** will look like this:\n    ```\n    altinn_localtest:\n        container_name: localtest\n        image: localtest:latest\n        restart: always\n        networks:\n            - altinntestlocal_network\n        ports:\n            - \"5101:5101\"\n        build:\n        context: .\n        environment:\n            - DOTNET_ENVIRONMENT=Docker\n            - ASPNETCORE_URLS=http://*:5101/\n            - GeneralSettings__BaseUrl=http://${TEST_DOMAIN:-local.altinn.cloud}:${ALTINN3LOCAL_PORT:-80}\n            - GeneralSettings__HostName=${TEST_DOMAIN:-local.altinn.cloud}\n            - PlatformSettings__ApiAuthorizationEndpoint=http://host.docker.internal:5101/authorization/api/v1/\n            - AuthnGeneralSettings__PlatformEndpoint=http://host.docker.internal:5101/\n        volumes:\n            - ./testdata:/testdata\n            - ${ALTINN3LOCALSTORAGE_PATH:-AltinnPlatformLocal}:/AltinnPlatformLocal\n        extra_hosts:\n            - \"host.docker.internal:host-gateway\"\n    ```\n\n2. Start the app you have made in the **Altinn Studio** and run it. Check if this app is working fine with the `app-localtest` backend service.\n3. Then go to the altinn-receipt directory and run `podman compose up -d --build`. If you make changes to the code, you will need to re-run `podman compose up -d --build` to see the change in action.\n4. The application should now be available at `local.altinn.cloud/receipt/{instanceOwnerId}/{instanceId}`. You'll find the `{instanceOwnerId}` and `{instanceId}` in the URL after you successfully submitted the **Altinn Studio** app form.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltinn%2Faltinn-receipt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltinn%2Faltinn-receipt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltinn%2Faltinn-receipt/lists"}