Command line tool for converting Altinn 2 reporting services into Altinn 3 apps.
Note: This tool is currently a proof of concept (POC), and functionality is therefore limited.
These instructions will get you a copy of the project up and running on your local machine.
Clone the altinn2-convert repo and navigate to the folder.
git clone https://github.com/Altinn/altinn2-convert
cd altinn2-convert
For easy app development, create an empty app in Altinn Studio if this does not already exist, and clone this to your local machine. Files generated using this tool can then be saved directly in the app directory.
Run the application from your faviorite IDE (f.ex. VS Code), or from the command line using dotnet run
. Modify the mode
variable in Program.cs
to run in different modes
- "generate": Generate models for the Altinn3 json files based on json schema on altinncdn.no
- "test": Convert a single schema from
TULPACKAGE.zip
in the root directory toout/
in the project root - "run": Convert all pacages in "~/TUL" to a Altinn3 app in
~/TULtoAltinn3
.
There might be other modes in the future when the project matures.