Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epic: Upgrade frontend app from AngularJS to Angular (doel project) #69

Open
Michiel-s opened this issue Jul 23, 2019 · 5 comments
Open
Assignees

Comments

@Michiel-s
Copy link
Member

Years ago we implemented the frontend app using AngularJS framework. Already for quite some time this framework is not developed further anymore. As of July 1 2018 the entered a 3 year support period. We have every reason to migrate to its successor Angular (https://angular.io/).

The new Angular framework is in many ways easier to understand and work with, but requires a full refactoring of all our frontend code including the templates. It will be a not-backwards compatible change, since customized / project specific templates won’t work anymore.

Key benefits or Angular:

  • Uses typescript which enhances the quality of our code
  • The Angular CLI which allows to generate boiler plate code and more
  • Out of the box support to build the frontend package ng build command. No need for Gulp anymore (which is abandoned anyway). Instead it uses Webpack under the hood.
  • It is reactive and we love that. Read more in blog about this
  • Makes testing easier.

Read more: https://gorrion.io/blog/angularjs-vs-angular

I propose to open a branch called Angular in both the Ampersand and Prototype repo where we prepare for this step.

I already started and can say that it will take some time. Be patient.

@Michiel-s Michiel-s self-assigned this Jul 23, 2019
@hanjoosten
Copy link
Member

Nice! This looks promising.

@stefjoosten
Copy link
Contributor

Sounds good. Anything we can do to help?

@Michiel-s
Copy link
Member Author

I've created a new repo to start developing the new generation prototype frontend using Angular. It's more convenient to have a separate repo for this, because I think this work will take a while.

https://github.com/AmpersandTarski/prototype-frontend

@Michiel-s
Copy link
Member Author

Michiel-s commented Aug 7, 2020

@hanjoosten can you add a new (temporary) command to the Ampersand compiler to also start the work on the compiler side.

I propose to add something like ampersand tmp-gen-frontend.

The reason why I propose a new command, not reusing ampersand proto is because there will be a split between prototype backend (php framework) and the frontend (new Angular project). For this issue we need to be able to generate only the new frontend and this process will be different than the current process having issue AmpersandTarski/Ampersand#1093 in mind. Instead of downloading/fetching the framework to an output folder and than generating the views, the new process will generate component-views for every interface in an existing folder where all templates are already available.

The backend code only requires a minor addition, and we can use the current ampersand proto command to generate the backend.

@Michiel-s Michiel-s transferred this issue from AmpersandTarski/Ampersand Nov 13, 2021
@hanjoosten
Copy link
Member

PR AmpersandTarski/Ampersand#1250 enables the required functionality in the ampersand generator.

@ManondW99 ManondW99 changed the title Upgrade frontend app from AngularJS to Angular Epic: Upgrade frontend app from AngularJS to Angular (doel project) Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants