Development Setup
Development Environment
Section titled “Development Environment”Set up a local development environment for DealAI.lt.
Local Setup
Section titled “Local Setup”Requirements
Section titled “Requirements”- Local PHP 8.x environment
- Local PostgreSQL database
- Local Elasticsearch (via Docker)
- Git for version control
Docker Compose
Section titled “Docker Compose”version: '3'services: postgres: image: postgres:13 ports: - "5432:5432" environment: POSTGRES_DB: dealai_products POSTGRES_USER: dealai_user POSTGRES_PASSWORD: password
elasticsearch: image: elasticsearch:7.17.0 ports: - "9200:9200" environment: - discovery.type=single-nodeWordPress Configuration
Section titled “WordPress Configuration”Use local WordPress installation with the theme in /wp-content/themes/products.
Development Tools
Section titled “Development Tools”- VS Code with PHP extensions
- phpMyAdmin/pgAdmin for database
- Postman for API testing
- Browser DevTools
Next Steps
Section titled “Next Steps”- Installation - Full setup
- Debugging - Debug techniques