This is a backend WebAPI solution written in .NET / C# following the clean architecture principles.
The API layer that consumes services provided by Altinn.Profile.Core
Relevant implementations:
- Controllers
- Program.cs
The domain and application layer that implements the business logic of the system.
Relevant implementations:
- Interfaces for external dependencies implemented by infrastructure and repository layer
- Domain models
- Services
The infrastructure layer that implements the interfaces defined in Altinn.Profile.Core for integrations towards 3rd-party libraries and systems.
Relevant implementations:
- Clients for communicating with SBL Bridge in Altinn 2
These instructions will get you a copy of the profile 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
- Also install recommended extensions (e.g. C#)
- Podman or another container tool such as Docker Desktop
Clone Altinn Profile repo and navigate to the folder.
git clone https://github.com/Altinn/altinn-profile
cd altinn-profile
- Start Altinn Profile docker container by running the command
podman compose up -d --build
- To stop the container running Altinn Profile run the command
podman stop altinn-platform-profile
The Profile components can be run locally when developing/debugging. Follow the install steps above if this has not already been done.
- Navigate to _src/Altinn.Profile, and build and run the code from there, or run the solution using you selected code editor
cd src/Altinn.Profile
dotnet run
The profile solution is now available locally at http://localhost:5030/. To access swagger use http://localhost:5030/swagger.