Ensure you have Git installed on your system or use your preferred method to clone the repository.
-
Clone the repository:
git clone https://github.com/zuperzonic1/wordpress-react-frontend
-
Navigate into the project directory:
cd wordpress-react-frontend -
Install the project dependencies:
npm install
This project uses WordPress as the backend, which provides data through a RESTful API. The React frontend receives this data using Axios. The HTML code is converted to JSX using the Interweave library, and routing within the project is managed using React Router DOM. Additionally, the project has Tailwind CSS configured for styling.
This repository contains only the frontend part of the project. To set up the backend, follow the tutorial on setting up Headless WordPress with CORS configuration: Headless WordPress CMS Tutorial by Cloudways