Before you begin, make sure you have the following installed:
- Node.js (version 20 or higher)
- pnpm (recommended) or npm
- Git
-
Clone the repository
git clone https://github.com/prappo/wordpress-ai cd wordpress-ai -
Install dependencies
pnpm install # or npm install -
Environment Setup Create a
.env.localfile in the root directory with the following variables:# Supabase Configuration NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key # OpenAI Configuration (if using AI features) OPENAI_API_KEY=your_openai_api_key
-
Start the development server
pnpm dev # or npm run devThe application will be available at
https://localhost:3000
-
Create a Vercel Account
- Sign up at vercel.com
- Install the Vercel CLI:
npm i -g vercel
-
Deploy to Vercel
vercel
-
Environment Variables Add the following environment variables in your Vercel project settings:
- All the variables from your
.env.localfile
- All the variables from your
Payment integration has been removed from this project. The application now focuses on the core WordPress AI development features without payment processing.
-
Create a Supabase Project
- Sign up at supabase.com
- Create a new project
- Note down your project URL and API keys
-
Database Setup
- Create necessary tables in your Supabase database
- Set up authentication if required
- Configure row level security (RLS) policies
pnpm dev- Start development serverpnpm build- Build for productionpnpm start- Start production serverpnpm lint- Run ESLintpnpm lint:fix- Fix ESLint errorspnpm prettier- Format code with Prettier
-
HTTPS Issues in Development
- The development server uses experimental HTTPS
- You might need to accept the self-signed certificate in your browser
-
General Issues
- Check the browser console for any JavaScript errors
- Verify your environment variables are correctly set
-
Supabase Connection Issues
- Verify your Supabase URL and API keys
- Check if your IP is allowed in Supabase dashboard
- Ensure your database tables are properly set up
This project is licensed under the terms of the license included in the repository.