{"id":27711229,"url":"https://github.com/f3liiix/nav-site","last_synced_at":"2025-04-26T17:01:53.368Z","repository":{"id":287502027,"uuid":"944741274","full_name":"f3liiix/nav-site","owner":"f3liiix","description":"一个用AI写的网址导航站，带后台管理。","archived":false,"fork":false,"pushed_at":"2025-04-26T15:50:20.000Z","size":945,"stargazers_count":138,"open_issues_count":1,"forks_count":23,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T16:37:07.227Z","etag":null,"topics":["nextjs","typescript"],"latest_commit_sha":null,"homepage":"https://123.ss","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f3liiix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-07T22:09:33.000Z","updated_at":"2025-04-26T15:50:23.000Z","dependencies_parsed_at":"2025-04-12T05:30:20.987Z","dependency_job_id":"b1ce5ef1-7157-4a70-a20d-07b3f839b044","html_url":"https://github.com/f3liiix/nav-site","commit_stats":null,"previous_names":["f3liiix/nav-site"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3liiix%2Fnav-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3liiix%2Fnav-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3liiix%2Fnav-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3liiix%2Fnav-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f3liiix","download_url":"https://codeload.github.com/f3liiix/nav-site/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251022089,"owners_count":21524205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","typescript"],"created_at":"2025-04-26T17:01:52.138Z","updated_at":"2025-04-26T17:01:53.358Z","avatar_url":"https://github.com/f3liiix.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# AI导航站程序\n\n一个收录AI服务和应用的导航网站，方便用户快速访问和检索AI工具。\n\n## 技术栈\n\n- 前端：Next.js + TypeScript + Tailwind CSS\n- 后台：Ant Design\n- 数据库：MySQL\n- 缓存：Redis\n- 容器化：Docker\n\n## 功能特点\n\n- 响应式设计，适配各种设备\n- 实时搜索、分类、标签、点击统计，基本功能齐全\n- 独立的管理后台\n\n## Nodejs 部署（需单独安装MySQL/Redis服务）\n\n#### 一、配置环境变量\n\n根目录创建`.env`文件，并根据实际情况修改配置：\n\n```env\n# 数据库配置\nDATABASE_URL=\"mysql://用户名:密码@localhost:3306/数据库名\"\n\n# 应用配置\nNEXT_PUBLIC_API_URL=\"http://localhost:3000/api\"\nNEXT_PUBLIC_SITE_NAME=\"123导航\"\nNEXT_PUBLIC_UPLOAD_DIR=\"uploads\"\n\n# Redis配置\nREDIS_HOST=localhost\nREDIS_PORT=6379\nREDIS_DB=0\nREDIS_PASSWORD=your_redis_password\n```\n\n#### 二、一键启动\n进入项目根目录，运行\n\n```bash\n./deploy.sh\n```\n\n#### 三、系统初始化\n\n首次运行时，访问 [http://localhost:3000/api/init](http://localhost:3000/api/init) 初始化系统，这将创建默认的管理员账户和分类。\n\n默认管理员账户：\n\n- 用户名：admin\n- 密码：admin123\n\n访问 [http://localhost:3000/admin](http://localhost:3000/admin) 进入管理后台。\n\n## Docker 部署（MySQL/Redis会集成在Docker容器中）\n\n使用 Docker Compose 可以一键启动所有服务（无需手动安装 MySQL 和 Redis）：\n\n1. 确保已安装 Docker 和 Docker Compose\n2. 在项目根目录创建 `.env` 文件，配置环境变量\n\n\u003e 提示：对于快速部署，您可以直接使用默认配置，无需修改 `.env` 文件。如果需要自定义配置，可以修改以下环境变量：\n\n```properties\n# MySQL 配置（默认值已经可用，如无特殊需求无需修改）\nMYSQL_DATABASE=nav_site\nMYSQL_USER=nav_user\nMYSQL_PASSWORD=nav_password\nMYSQL_ROOT_PASSWORD=root_password\n\n# 数据库和Redis连接配置（使用Docker服务名，无需修改）\nDATABASE_URL=\"mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@db:3306/${MYSQL_DATABASE}\"\nREDIS_HOST=redis\nREDIS_PORT=6379\nREDIS_URL=\"redis://${REDIS_HOST}:${REDIS_PORT}\"\n\n# 应用配置（默认值已可用）\nNEXT_PUBLIC_API_URL=\"http://localhost:3000/api\"\nNEXT_PUBLIC_UPLOAD_DIR=\"uploads\"\n```\n\n3. 一键启动所有服务：\n\n```bash\ndocker-compose up -d\n```\n\n4. 访问以下地址初始化系统：\n   - 系统初始化：[http://localhost:3000/api/init](http://localhost:3000/api/init)\n   - 管理后台：[http://localhost:3000/admin](http://localhost:3000/admin)\n   - 默认管理员账户：admin / admin123\n\n常用运维命令：\n\n```bash\n# 查看服务状态\ndocker-compose ps\n\n# 查看服务日志\ndocker-compose logs -f\n\n# 停止所有服务\ndocker-compose down\n\n# 重新构建并启动服务\ndocker-compose up -d --build\n```\n\n## 赞助商\n\n- [YxVM](https://yxvm.com/)\n- [NodeSupport](https://github.com/NodeSeekDev/NodeSupport)\n\n## 许可证\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3liiix%2Fnav-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff3liiix%2Fnav-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3liiix%2Fnav-site/lists"}