The Architecture Refactoring Helper is an application which aims to help find suitable migration approaches to microservices architecture.
- Docker
- Docker-compose
- Navigate to "{RepositoryFolder}" via Console
- Run "docker-compose build" (only needed on first startup or if code changed were made)
- Run "docker-compose up"
After starting the docker containers the API can be reached at:
and the User interface at:
It might be necessary to change the production URL of the API inside the user interface project. This can be done in the "{RepositoryFolder}/UI/src/environments/environment.prod.ts" file.
- .NET 6 SDK - if running without Docker
- Docker - if running in Docker
- Running through IDE
- Open "ArchitectureRefactoringHelper.sln" in "{RepositoryFolder}/ArchitectureRefactoringHelper" Folder
- Run "Repository" Project
- Running through Console
- Navigate to "{RepositoryFolder}/ArchitectureRefactoringHelper/Repository"
- On first startup run "dotnet restore"
- Run "dotnet run"
- Running in Docker container
- Navigate to "{RepositoryFolder}/ArchitectureRefactoringHelper/Repository"
- Run "docker build -t {ImageTag} ."
- Run "docker run -p 5000:5000 {ImageTag}"
After starting the app the API will run on:
and the swagger UI can be reached at:
After starting docker container the API can reached at:
Swagger UI is not active when running the application in docker
- node.js - if running without Docker
- Angular CLI - if running without Docker
- Docker - if running in Docker
- Running through WebStorm
- Open "{RepositoryFolder}/UI" Folder
- Run application
- Running through Console
- Navigate to "{RepositoryFolder}/UI"
- On first startup run "npm install"
- Run "ng serve"
- Running in Docker container
- Navigate to "{RepositoryFolder}/UI"
- Run "docker build -t {ImageTag} ."
- Run "docker run -p 9000:9000 {ImageTag}"
After starting the app the user interface can be reached on:
After starting docker container the user interface can be reached at:
The ng-openapi-gen NPM module enables us to generate angular services and models based on a OpenApi 3 specification. As an input, it takes either the swagger.json file in the "{RepositoryFolder}/Repository" folder.
For more info see: https://github.com/cyclosproject/ng-openapi-gen
- Open console of choice
- Navigate to "{RepositoryFolder}/UI"
- Run "npm run ng-openapi-gen"
The swagger.json will be generated at each startup of the back-end application. This is not the case when using the existing dockerfiles.