• Articles
  • advertising chart
    advertising chart
    Want to show up here too?Contact us.

    Resource Profile:

    第九代NineAiartificial intelligence (AI)(AI.ChatGPT)是以ChatGPT为基础的自然语言处理工具,利用深度学习技术解读和适应人类语言的特点,实现准确、高效的对话交互。该工具还具备上下文感知和互动能力,能解决包括撰写邮件、视频脚本、文案创作、翻译、编程,以及撰写论文等多项任务。

    Photo Gallery:

    NineAi 全新AI系统网站源码 ChatGPT-效果图1 NineAi 全新AI系统网站源码 ChatGPT-效果图2 NineAi 全新AI系统网站源码 ChatGPT-效果图3 NineAi 全新AI系统网站源码 ChatGPT-效果图4

    Installation and usage instructions:

    必备环境导入
    需要满足以下条件:
    1. nodejs版本要求:v16及以上;
    2. pnpm版本要求:v6及以上;
    3. MySQL数据库版本要求:>=5.7;
    4. redis要求。
    代码架构组织
    按照功能划分,包含以下文件夹:
    1. chat – 用户端代码;
    2. admin – 管理端代码;
    3. service – 服务端代码。
    本地开发流程
    步骤:
    1. 三方同步命令:执行 pnpm install 安装依赖;
    2. 项目启动:执行 pnpm dev 启动项目;
    3. 项目编译:执行 pnpm build 打包项目。
    启动项目步骤
    1. 依赖安装:pnpm i;
    2. 服务端启动:进入service文件夹创建.env文件,配置测试数据库和redis后执行pnpm dev;
    3. 数据库使用ORM映射,启动时会自动创建相应数据库;
    4. 启动完毕后,可切换到chat、admin文件夹执行pnpm dev启动;
    5. 权限授权修改:在src/modules/globalConfig/globalConfig.service.ts文件下,删除函数NineAiCheckAuth中的所有内容,同时移除onModuleInit中的NineAiCheckAuth,以取消授权功能;
    6. 对应地,在src/modules/task/task.service.ts文件中,取消checkauth定时任务。
    打包路径说明
    由于service为服务端项目,因此无需额外的环境配置。打包时,全部文件都需包含在内,除了需要关注Figure 2完整列出的那几项文件外,其余可忽略。
    因此,在完成上述操作后,只保留下图中标注的那部分文件,即可保证服务端项目的正常运行。
    前端文件打包需要注意的是,有两个配置文件:.env.production和admin,它们的变量值仅需修改为实际的线上地址,其余无需修改。
    需要特别强调的是,请尽量保持前端和后端独立部署,否则或将涉及到远程堆栈类库的调用,带来不必要的麻烦。至于管理端,修改也是相同的流程,只需替换为实际的线上地址即可。
    刷新404问题
    由于前端history项目的原因,刷新页面可能会出现404错误。这时候,需要对Nginx进行相应配置。

    advertising chart
    advertising chart
    Want to show up here too?Contact us.
    Frequently Asked Questions FAQ
    Can free downloads or VIP member-only resources be commercialized directly?
    The resources on this site are collected and organized through the network, for personal research and study purposes only. The copyright belongs to the legal owner of the software and program code, users should verify the copyright and legality of the resources, prohibited for commercial use, illegal activities or any violation of national laws and regulations.
    Disclaimer of liability for program or code bugs, compatibility issues or functional defects, etc.
    As the resources on this site are collected and organized through the network, not the site's original, it can not fully guarantee its functionality or code compatibility. Users need to verify whether the resources meet the needs of their own, due to the following circumstances lead to losses, this site does not assume any responsibility:
    Programs, source code and other computer software resources may contain code vulnerabilities (bugs), compatibility issues or functional defects left by the developer. This site does not provide free repair services for such technical defects, users need to bear the risk of debugging, modification or abandonment of the use.
    © 2025 by - SourceHub & Www.ZYYdd.Com. All rights reserved 蜀ICP备2025145155号-1