MANGA18K là một nền tảng đọc truyện tranh trực tuyến được xây dựng trên nền tảng CodeIgniter 4, sử dụng dữ liệu từ API mã nguồn mở, hỗ trợ trải nghiệm người dùng tối ưu với giao diện hiện đại và tốc độ truy cập nhanh.
- Dữ liệu phong phú: Tự động cập nhật truyện mới nhất từ hệ thống API (otruyenapi).
- Trải nghiệm người dùng:
- Chế độ Dark Mode chuyên nghiệp.
- Lưu lịch sử đọc truyện (Local Storage).
- Hệ thống theo dõi truyện (Following) và yêu thích (Likes).
- Bình luận và phản hồi thời gian thực.
- Tối ưu SEO:
- Tự động tạo Sitemap (Page, Story index).
- Cấu hình Meta tags, Open Graph chuẩn SEO.
- File
robots.txttối ưu.
- Giao diện hiện đại: Sử dụng Tailwind CSS, Alpine.js và FontAwesome.
- PHP Version: >= 8.2
- Framework: CodeIgniter 4.x
- Database: MySQL 5.7+ hoặc MariaDB 10.3+
- Web Server: Nginx (Khuyên dùng) hoặc Apache
- PHP Extensions:
intl,mbstring,curl,json,mysqlnd,xml,gd
git clone https://github.com/khaizinam/otruyen_web.git
cd otruyen_webcomposer installSao chép file cấu hình mẫu và chỉnh sửa thông tin database:
cp env-sample .envMở file .env và cập nhật các thông số:
app.baseURL = 'https://manga18k.xyz/'database.default.hostname = localhostdatabase.default.database = your_db_namedatabase.default.username = your_db_userdatabase.default.password = your_db_pass
Đảm bảo thư mục writable có quyền ghi:
chmod -R 777 writablephp spark migrate* * * * * cd /var/www/manga18k.xyz/public_html && php spark tasks:run >> /var/www/manga18k.xyz/public_html/writable/logs/task_scheduler.log 2>&1Cấu hình mẫu cho Nginx để chạy dự án:
server {
listen 80;
server_name manga18k.xyz;
root /path/to/your/project/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
}
}pm2 install pm2-logrotate
app/Controllers: Xử lý logic nghiệp vụ.app/Models: Tương tác với cơ sở dữ liệu.app/Views: Giao diện người dùng (Blade-like PHP).public/: Thư mục công khai (CSS, JS, Images, robots.txt).writable/: Lưu trữ cache, logs và sessions.
Bản quyền thuộc về MANGA18K Team.
Dự án được phát triển bởi Khaizinam Web Services