Note
This repository contains files with long file-names, that may fail to clone on Windows. In order to fix this, run the following command to configure git to allow for long paths on Windows:
git config --system core.longpaths trueNote also that Visual Studio does not handle file-paths that are too long when compiling, and as such, it's recommended to clone this repository down into a directory that is no longer than 32 characters long (including the repo-directory). This repository is regularly built and tested in Visual Studio from a directory path that is the following format:
C:\Users\ABCDEF\hub\altinn-register
^^^^^^
6 character user-name dir
These instructions will get you a copy of the register 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 Register repo and navigate to the folder.
git clone https://github.com/Altinn/altinn-register
cd altinn-registerTo start a Register docker container
podman compose up -d --buildTo stop the container running Register
podman stop altinn-registerThe register solution is now available locally at http://localhost:5020/. To access swagger use http://localhost:5020/swagger.
The Register components can be run locally when developing/debugging. Follow the install steps above if this has not already been done.
Navigate to src/Register, and build and run the code from there, or run the solution using you selected code editor
dotnet runThe register solution is now available locally at http://localhost:5020/. To access swagger use http://localhost:5020/swagger.