Base solution for your next web application
Open Closed

Migrating from Mvc/jQuery to Angular #11079


User avatar
0
BigCDogCrew created

AspNetZero v8.4, Abp 5.5, Mvc/jQuery. (EFCore3)

We are planning to upgrade our project to the latest version of AspNetZero (and EFCore6). We are currently using Mvc/jQuery but want to move in the direction of Angular.

We would like to maintain the legacy Mvc/jQuery pages as we author new pages of the system in Angular. We will update the legacy pages to Angular as time permits...but may take several years.

Is this migration path possible? What challenges will we face?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @BigCDogCrew

    I have few questions;

    1. Would you like both apps (MVC and Angular) to use the same database ?
    2. Do you want your users to use both apps at the same time ?

    Thanks,

  • User Avatar
    0
    BigCDogCrew created

    Yes, same database. It's all the same project. The user's should not experience any differences or disruption in workflow.

    It will hopefully be presented to the users as the same website (one project, same appsettings.json). I'm thinking the easiest solution might be to install the new Angular project and then retrofit it to accomodate our domain-specific legacy ANZ-Mvc/jQuery pages.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @BigCDogCrew

    In order to achive this, you first need to upgrade your current solution to latest version so you can have same migration for both you MVC and Angular apps.

    I think it will be easier to use same shared projects like Core, Host, Core.Shared in both projects. So, maybe, you can merge your current solution into a newly downloaded AspNet Zero Angular app. In that case, you will have a single EntityFramework project and single point of migrations. Otherwise, it will be a problem migrating your database.