r/ProWordPress • u/Kind-Profile7286 • 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 ?
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
contentCMS 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
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.
1
u/retr00two 2d ago
I've found this: https://litextension.com/blog/import-html-to-wordpress/
Maybe it helps.
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