I am currently working on adapting an Application that was originally developed for a single country to be used in multiple countries (20+) with only slight modifications needed for each location. I am exploring ways to make the code reusable and scalable, here are some ideas I have considered:
- Creating a New Repo for each country (Independent releases, no code reuse but easily scalable)
- Organizing into New Folders for each country where new files are added only if changes are required (Independent, Limited repeated code, Appears scalable )
- Using v-if statements within divs to determine visibility (Dependent releases, Highly reusable, but challenging scalability leading to messy code)
Regarding the App structure/Code: It includes a form with fields and validations that vary based on the country, as well as banners with layouts specific to each country.
I am interested in learning more about how to architect a Vue.js Application to handle these requirements efficiently and effectively.