Skip to content

Website PHP Truyện Tranh Online đơn giản tự động update truyện (Các chức năng: Đọc truyện, theo dõi, đăng nhập bằng google, xác thực otp, xem, tìm kiếm truyện, binh luận..) Sử dụng API otruyen.

License

Notifications You must be signed in to change notification settings

khaizinam/manga18k-xyz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

349 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MANGA18K - Web Đọc Truyện Tranh Hiện Đại

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.

🚀 Tính năng nổi bật

  • 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.txt tối ưu.
  • Giao diện hiện đại: Sử dụng Tailwind CSS, Alpine.js và FontAwesome.

🛠 Yêu cầu hệ thống

  • 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

📥 Hướng dẫn cài đặt

1. Clone Source Code

git clone https://github.com/khaizinam/otruyen_web.git
cd otruyen_web

2. Cài đặt phụ thuộc

composer install

3. Cấu hình môi trường

Sao chép file cấu hình mẫu và chỉnh sửa thông tin database:

cp env-sample .env

Mở file .env và cập nhật các thông số:

  • app.baseURL = 'https://manga18k.xyz/'
  • database.default.hostname = localhost
  • database.default.database = your_db_name
  • database.default.username = your_db_user
  • database.default.password = your_db_pass

4. Phân quyền thư mục

Đảm bảo thư mục writable có quyền ghi:

chmod -R 777 writable

5. Chạy Migration (Khởi tạo Database)

php spark migrate

6. Cấu hình CRON

* * * * * cd /var/www/manga18k.xyz/public_html && php spark tasks:run >> /var/www/manga18k.xyz/public_html/writable/logs/task_scheduler.log 2>&1

7. Cấu hình Nginx

Cấ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;
    }
}

socket guide

pm2 install pm2-logrotate

📈 Cấu trúc thư mục chính

  • 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.

📄 Giấy phép

Bản quyền thuộc về MANGA18K Team.


Dự án được phát triển bởi Khaizinam Web Services

About

Website PHP Truyện Tranh Online đơn giản tự động update truyện (Các chức năng: Đọc truyện, theo dõi, đăng nhập bằng google, xác thực otp, xem, tìm kiếm truyện, binh luận..) Sử dụng API otruyen.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published