This project consists of a Next.js Frontend and a WordPress Backend (Headless CMS).
- Move the
blogfolder to your server document root (e.g.,htdocsin XAMPP/MAMP). - Create a MySQL database named
blog_db. - Import the
blog_db_backup.sqlfile into that database (using phpMyAdmin or MySQL Workbench). - Update
blog/wp-config.phpif your database credentials are different from standard (root/empty). - Start your PHP server (e.g., via XAMPP or
php -S localhost:8080).
- Open the
frontendfolder in your terminal. - Install dependencies:
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000.
blog/: WordPress source code (Backend).frontend/: Next.js source code (Frontend).blog_db_backup.sql: Database backup file.