Chào mừng đến với tài liệu Jankx Framework! Đây là nơi chứa tất cả các hướng dẫn, API reference, và best practices cho việc phát triển với Jankx Framework.
- Getting Started - Hướng dẫn bắt đầu với Jankx Framework
- Architecture Overview - Tổng quan kiến trúc framework
- Service Providers - Hướng dẫn tạo và sử dụng service providers
- Configuration - Cấu hình framework và ứng dụng
- WooCommerce Integration - Tích hợp với WooCommerce
- Gutenberg Integration - Tích hợp với Gutenberg blocks
- WordPress Integration - Tích hợp với WordPress core
- Block Development - Phát triển custom blocks
- Template Engine - Sử dụng template engine
- Asset Management - Quản lý CSS, JS, và assets
- Testing Guide - Hướng dẫn testing
- Performance Optimization - Tối ưu hóa hiệu suất
- Security Best Practices - Bảo mật và best practices
- Deployment Guide - Hướng dẫn deploy
- Troubleshooting - Xử lý sự cố
# Clone repository
git clone https://github.com/your-org/jankx-framework.git
# Install dependencies
composer install
npm install// config/app.php
return [
'name' => 'Your Theme',
'version' => '1.0.0',
// ... other config
];// includes/app/Providers/YourServiceProvider.php
<?php
namespace App\Providers;
use Jankx\Foundation\Application;
use Jankx\Support\Providers\ServiceProvider;
class YourServiceProvider extends ServiceProvider
{
public function register(Application $app)
{
// Register services
}
public function boot(Application $app)
{
// Bootstrap services
}
}// config/providers.php
'frontend' => [
App\Providers\YourServiceProvider::class,
],includes/
├── app/ # Application code
│ ├── Providers/ # Service providers
│ ├── Services/ # Business logic
│ ├── Http/ # HTTP kernels
│ └── Console/ # Console commands
├── framework/ # Core framework
│ ├── Foundation/ # Application foundation
│ ├── Support/ # Support classes
│ ├── Gutenberg/ # Gutenberg integration
│ └── Services/ # Core services
└── config/ # Configuration files
├── app.php
├── providers.php
└── ...
# Install dependencies
composer install
# Update dependencies
composer update
# Run tests
composer test
# Code style check
composer cs-check
# Code style fix
composer cs-fix# Install dependencies
npm install
# Build assets
npm run build
# Watch for changes
npm run watch
# Development build
npm run dev# .env
WP_DEBUG=true
JANKX_TEMPLATE_ENGINE=jankx
JANKX_TEMPLATE_CACHE=false// config/app.php
return [
'name' => env('APP_NAME', 'Jankx Theme'),
'version' => env('APP_VERSION', '1.0.0'),
'debug' => env('WP_DEBUG', false),
'template_engine' => env('JANKX_TEMPLATE_ENGINE', 'jankx'),
];- PSR-12 coding standard
- Type declarations
- DocBlocks for all methods
- Dependency injection
- ES6+ syntax
- JSDoc comments
- ESLint configuration
- Prettier formatting
- BEM methodology
- SCSS variables
- Mobile-first approach
- Autoprefixer
# Run unit tests
composer test:unit
# Run with coverage
composer test:coverage# Run integration tests
composer test:integration# Run end-to-end tests
npm run test:e2e# Build for production
npm run build:prod
composer install --no-dev --optimize-autoloader# Dockerfile
FROM wordpress:latest
COPY . /var/www/html/wp-content/themes/jankx/- Fork repository
- Create feature branch
- Make changes
- Add tests
- Submit pull request
- All code must be reviewed
- Tests must pass
- Documentation must be updated
- Coding standards must be followed
- 📖 Check documentation
- 🐛 Search GitHub issues
- 💬 Join Discord community
- 📧 Contact team
- Use GitHub issues
- Provide reproduction steps
- Include environment details
- Add relevant logs
This project is licensed under the GPL v3 or later License - see the LICENSE file for details.
- WordPress community
- Laravel framework inspiration
- All contributors
- Beta testers
Cập nhật lần cuối: 2024-01-01 Phiên bản: 2.0.0 Tác giả: Jankx Team