Can I use this without the API and just use it for Monolithic front-end and not headless? #8
-
Do I need to use Headless Front-End? Or Would I do a hybrid approach and route the posts as a hybrid approach so its monolithic but also headless. Basically I have a very large project and die to not wanting to code Ecommerce plugins and shipping plugins I want to use Wordpress monolithic for the time being. If i have to use the API to pass data to a Monolithic frontend how would I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi bro, you can take a hybrid approach by using WordPress as a monolithic system for features like eCommerce and shipping plugins, while also leveraging its API to pass dynamic data to a custom front-end when needed. This way, your main site functions as a traditional WordPress-powered site, but you can use the REST API or GraphQL to send specific data to a decoupled front-end, such as a React or Vue.js app, for more flexibility in handling certain components. This allows you to have the convenience of a monolithic structure while still benefiting from headless architecture in specific areas, without fully committing to either approach. |
Beta Was this translation helpful? Give feedback.
-
Hi brother, Thank you for the offer! I’m familiar with full stack web development and skilled in technologies such as JavaScript, TypeScript, React, Node.js, MongoDB, Express and many UI libraries. I’d love to learn more about your high-traffic project on public domain books and see how I can assist. Could you share the tech stack you’re using in your project? If it's within my expertise, I'd be happy to offer guidance and help where needed! |
Beta Was this translation helpful? Give feedback.
-
@forestcall You can access data either through the API or by passing your data directly as an array in the wordpress-plugin-boilerplate/includes/Frontend/Frontend.php Lines 104 to 112 in 9260f62 Access your data on the frontend using Example: |
Beta Was this translation helpful? Give feedback.
Hi bro, you can take a hybrid approach by using WordPress as a monolithic system for features like eCommerce and shipping plugins, while also leveraging its API to pass dynamic data to a custom front-end when needed. This way, your main site functions as a traditional WordPress-powered site, but you can use the REST API or GraphQL to send specific data to a decoupled front-end, such as a React or Vue.js app, for more flexibility in handling certain components. This allows you to have the convenience of a monolithic structure while still benefiting from headless architecture in specific areas, without fully committing to either approach.