Git Product home page Git Product logo

architecture-refactoring-helper's Introduction

Architecture Refactoring Helper

The Architecture Refactoring Helper is an application which aims to help find suitable migration approaches to microservices architecture.

Running the application in Docker

Requirements

  • Docker
  • Docker-compose

Starting the application

  1. Navigate to "{RepositoryFolder}" via Console
  2. Run "docker-compose build" (only needed on first startup or if code changed were made)
  3. Run "docker-compose up"

Using the application

After starting the docker containers the API can be reached at:

and the User interface at:

Troubleshooting

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.

Running the Backend

Requirements

  • .NET 6 SDK - if running without Docker
  • Docker - if running in Docker

Starting the application

  • Running through IDE
    1. Open "ArchitectureRefactoringHelper.sln" in "{RepositoryFolder}/ArchitectureRefactoringHelper" Folder
    2. Run "Repository" Project
  • Running through Console
    1. Navigate to "{RepositoryFolder}/ArchitectureRefactoringHelper/Repository"
    2. On first startup run "dotnet restore"
    3. Run "dotnet run"
  • Running in Docker container
    1. Navigate to "{RepositoryFolder}/ArchitectureRefactoringHelper/Repository"
    2. Run "docker build -t {ImageTag} ."
    3. Run "docker run -p 5000:5000 {ImageTag}"

Using the application

Without Docker

After starting the app the API will run on:

and the swagger UI can be reached at:

With Docker

After starting docker container the API can reached at:

Swagger UI is not active when running the application in docker

Running the User interface

Requirements

  • node.js - if running without Docker
  • Angular CLI - if running without Docker
  • Docker - if running in Docker

Starting the application

  • Running through WebStorm
    1. Open "{RepositoryFolder}/UI" Folder
    2. Run application
  • Running through Console
    1. Navigate to "{RepositoryFolder}/UI"
    2. On first startup run "npm install"
    3. Run "ng serve"
  • Running in Docker container
    1. Navigate to "{RepositoryFolder}/UI"
    2. Run "docker build -t {ImageTag} ."
    3. Run "docker run -p 9000:9000 {ImageTag}"

Using the application

Without Docker

After starting the app the user interface can be reached on:

With Docker

After starting docker container the user interface can be reached at:

Development

Using ng-openapi-gen

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

Generating angular services and models

  • Open console of choice
  • Navigate to "{RepositoryFolder}/UI"
  • Run "npm run ng-openapi-gen"

Re-generating the swagger.json file for the API

The swagger.json will be generated at each startup of the back-end application. This is not the case when using the existing dockerfiles.

architecture-refactoring-helper's People

Contributors

t-haller avatar

Watchers

 avatar  avatar

Forkers

jfr609

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.