LANraragi_cn 项目使用教程
1. 项目的目录结构及介绍
LANraragi_cn 是一个基于 Difegue/LANraragi 项目的汉化版本,主要用于阅读和管理压缩包中的漫画。以下是项目的目录结构及其介绍:
LANraragi_cn/
├── app/ # 应用程序核心代码
│ ├── Controller/ # 控制器代码
│ ├── Model/ # 模型代码
│ ├── public/ # 静态文件(CSS, JS, 图片等)
│ ├── templates/ # 模板文件
│ └── lib/ # 库文件
├── script/ # 脚本文件
├── t/ # 测试文件
├── docker/ # Docker 相关文件
├── database/ # 数据库文件
├── content/ # 漫画内容文件夹
├── lanraragi.conf # 配置文件
└── Dockerfile # Docker 构建文件
2. 项目的启动文件介绍
项目的启动文件是 script/lanraragi
,这是一个 Perl 脚本,用于启动 LANraragi 应用程序。以下是启动文件的主要内容:
#!/usr/bin/env perl
use Mojolicious::Lite;
use lib "lib";
use LANraragi::Utils::Generic;
use LANraragi::Utils::Database;
use LANraragi::Utils::Plugins;
use LANraragi::Utils::Routing;
use LANraragi::Utils::TempFolder;
use LANraragi::Utils::Logging;
use LANraragi::Utils::Auth;
use LANraragi::Utils::Archive;
use LANraragi::Utils::Database;
use LANraragi::Utils::Generic;
use LANraragi::Utils::Plugins;
use LANraragi::Utils::Routing;
use LANraragi::Utils::TempFolder;
use LANraragi::Utils::Logging;
use LANraragi::Utils::Auth;
use LANraragi::Utils::Archive;
# 启动应用程序
app->start;
3. 项目的配置文件介绍
项目的配置文件是 lanraragi.conf
,这是一个 INI 格式的文件,用于配置应用程序的各种参数。以下是配置文件的主要内容:
# 基本配置
[General]
title = LANraragi
port = 3000
# 数据库配置
[Database]
redis_host = localhost
redis_port = 6379
redis_password =
# 日志配置
[Logging]
file = /root/lanraragi/logs/lanraragi.log
level = info
# 内容目录配置
[Content]
directory = /root/lanraragi/content
# 数据库目录配置
[Database]
directory = /root/lanraragi/database
以上是 LANraragi_cn 项目的基本使用教程,包括项目的目录结构、启动文件和配置文件的介绍。希望这些信息能帮助你更好地理解和使用该项目。