Server Installation & Deployment
💡 Click the button above to copy all commands
Production Ready Installation
Follow these steps to deploy your Headless WordPress site on your server (VPS, Cloud, or Hosting).
Prerequisites
Ensure your server has the following installed:
- Node.js (v18.17+)
- npm or yarn
- Git
Step 1: Create Project Structure
Run the following command to initialize the project:
npx create-next-app@latest my-headless-siteSelect the recommended options (TypeScript, ESLint, Tailwind CSS, App Router).
Step 2: Navigate to Directory
cd my-headless-siteStep 3: Clone System Files
Integrate the headless system into your project:
git clone https://github.com/Turkeyseo/headless-wordpress .Step 4: Install Dependencies
npm installStep 5: Build for Production
Compile the application for optimal performance:
npm run buildStep 6: Start the Server
Launch your application in production mode:
npm startYour application is now running on port 3000.
Step 7: Automated Setup Wizard
Open your browser and navigate to your site URL (e.g., https://your-domain.com). You will be automatically redirected to the Setup Wizard.
The system will handle all configuration automatically:
- Connecting to your WordPress site
- Generating environment variables
- Configuring site settings
Note: For a permanent setup, it is recommended to use a process manager like PM2: pm2 start npm --name 'headless-wp' -- start