# news_ad_api **Repository Path**: lluck42/news_ad_api ## Basic Information - **Project Name**: news_ad_api - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-03 - **Last Updated**: 2026-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 简介 后端代码采用gin框架开发,使用 gorm 稳定版作为 orm 框架 # 所需服务 1. mysql 8 2. nginx 3. 该软件服务本身 4. openai 兼容的 api (用来做AI分析报告) # 配置文件 1. 复制当前目录文件 config.example.yml 为 config.yml 2. 修改 config.yml 文件配置 3. 复制当前cmd目录文件 config.example.yml 为 config.yml 4. 修改cmd目录文件 config.yml 文件配置 # 架构设计 nginx -> go -> mysql nginx -> html # 启动、编译操作操作 1. linux 服务器上运行 sh build.sh 命令进行编译 2. 参照 systemctl.txt 文件编写守护进程服务文件(已有则不需要这步) 3. 启动服务 systemctl start xxx 4. 启动 nginx 服务(已有则不需要这步) # 域名路径 https://xxxxxx/api/ -> api服务 https://xxxxxx/html/ -> html服务 # 测试 ssh://204.www/data/html/daheyun_news_ad_api