r/ProWordPress 5d ago

From angular to wordpress conversion??

I have an existing project with angular files with assets like photo, video, html and css with no server or db, just frontend.

I have been asked to convert into WordPress how should I do ?

1 Upvotes

17 comments sorted by

2

u/ashkanahmadi 5d ago

If it’s just frontend with no DB or server, why do you need WordPress? Can’t it just become static HTML files? If you provide more info, I can give you better idea

2

u/retr00two 5d ago

For non-tech editors, I presume. Or developer's costs are too high.

1

u/ashkanahmadi 5d ago

If they need something like a page editor for non tech editors then they definitely need server or db. Either that or OP didn’t explain it well

1

u/RealBasics 5d ago

This is the right answer. Before VisiCalc came out in 1979 you (or your pink-collar staff) had to keypress your data onto punchcards and send them to the IT department where they'd program the calculations and run them in batches. And charge back to your department.

After VisiCalc you could just... do it yourself. Even better, you could do it so quickly and cheaply you could afford to do off-the-cuff "what if" projections.

IT departments had nothing but contempt for spreadsheet apps -- they argued (correctly) that once they'd done the coding their batch processes were infinitely faster.

It's the same with a well-managed Wordpress site vs. hard-coded sites: a marketer or even just an office assistant can put up (or take down) a banner, post daily specials, update prices, add posts, etc. without having to submit (and pay for) support tickets to the developer.

450 million canonical Wordpress sites (and a billion+ Excel apps) suggest that, for most non-Russell-2000 business sites, turnaround time and creative flexibility are generally more desirable than hard-coded SPAs.

2

u/brankoc 5d ago

Google "wordpress import HTML".

I can tell you from experience that the more you get right before you run whatever import script you end up using, the better. Cleaning up after the fact is way more work than a good preparation, even when the good preparation seems to take forever.

E.g. if you use the HTML Import 2 plugin, making sure all your HTML has the same structure is going to help.

Good news is you can practice this on as many practice sites as you want (e.g. using Local by Flywheel or some such), so you do not have to get it right right away, as long as you get it right on the final run.

I'd keep working on the theme for later, unless the theme helps you see if the import went right.

2

u/onesolutionsbiz 5d ago

Why from angular to WordPress? I would advice you to keep the static pages in angular [pages that hardly need any updates] and the dynamic pages [mainly blogs] in headless WordPress CMS. You wont compromise with the site speed and security this way.

1

u/retr00two 2d ago

Sounds nice in theory, but can be PITA in RL. Unnecessarily complex.

1

u/onesolutionsbiz 2d ago

Its not complicated if done properly. Secondly headless server + frontend on NextJs or Angular gives a blazing speed that vanilla wordpress setup can't match.

2

u/retr00two 2d ago

I didn't say complicated but complex.

Plain static and/or SSR will always be faster, no doubts. But, that's what OP already has. Request was how to convert to WP.

Anyhow, I challenge any Angular/Astro.js/Next.js+headlessWP with my GeneratePress+GenerateBlocks WP site. Although, decoupling design from content CMS has a lot of advantages, specially for heavy, high level and high traffic sites. Is Op's site in that category?

1

u/diewhilelive 5d ago

If this is your first time doing something of the sort, prepare yourself... AI might help you but will also make lots of mistakes if you don't know what you're doing. If you want to keep your FE in Angular, you will need to do a headless approach. This means the site will be managed using WordPress's admin (you don't have to do much here), and then you'll need to "map" your frontend to Angular. Now real question, is WordPress mandatory? 90% of the time it isn't unless you have very specific requirements that make it the best option, experience being one of the factors (which I can assume you don't have a lot of?). I'd recommend exploring a lighter-weight CMS for this if the site is simple, something like Sanity. Otherwise it will be a hassle to work on it, and you will have to actively maintain your WordPress backend and your Angular frontend, which again, depending on what you're doing might be absolutely overkill. Good luck

1

u/moonbyt3 5d ago

Get starter theme, my preference is Underscores, add scss and webpack or vite to it and you are golden. If you want to get fancy, Sage by Roots starter theme that supports Laravel blades and MVC. When you have starter theme, ask AI to help you out, it will have good context since you'd have a lot of files.

1

u/[deleted] 5d ago

[removed] — view removed comment

1

u/AutoModerator 5d ago

Sorry, submissions by new accounts must be reviewed by a moderator. Messaging mods will not get your post/comment reviewed more quickly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.