{"id":16429601,"url":"https://github.com/stbui/navigation","last_synced_at":"2026-03-07T21:01:58.864Z","repository":{"id":83892483,"uuid":"68291231","full_name":"stbui/navigation","owner":"stbui","description":"前端导航","archived":false,"fork":false,"pushed_at":"2017-09-14T02:34:40.000Z","size":37744,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-21T16:55:28.250Z","etag":null,"topics":["bootstrap","docker","mysql","nodejs"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/stbui.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}},"created_at":"2016-09-15T12:19:23.000Z","updated_at":"2021-02-07T11:02:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"82289aa8-88fd-4fe9-9e9e-24663feda149","html_url":"https://github.com/stbui/navigation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stbui/navigation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stbui","download_url":"https://codeload.github.com/stbui/navigation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30231489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bootstrap","docker","mysql","nodejs"],"created_at":"2024-10-11T08:23:38.648Z","updated_at":"2026-03-07T21:01:58.835Z","avatar_url":"https://github.com/stbui.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"前端导航大全\n----------\n\n```bash\ngit clone https://github.com/stbui/navigation\n```\n\n安装依赖并启动\n```bash\nnpm install\n```\n\n导入sql到MySQL数据库，然后修改项目数据库配置文件\n```bash\nsrc/common/config/db.js\n```\n\n```javascript\nmysql: {\n      host: '127.0.0.1',\n      port: '',\n      database: 'navigation',\n      user: 'root',\n      password: 'root',\n      prefix: 'nav_',\n      encoding: 'utf8'\n}\n```\n\n```bash\nnpm run start\n```\n\n## docker\n\n\u003e 前提依赖环境准备\n\n```\ndocker pull node\ndocker pull mysql\n```\n\n\u003e 进入到项目目录下，执行下面命令构建镜像\n\n```\ndocker build -t navigation .\n```\n\n\u003e 启动mysql容器\n\n```\ndokcer run -d -p 3306:3306 --name nav-mysql -e MYSQL_ROOT_PASSWORD=root mysql\n```\n如果需要数据持久化，使用下面命令创建\n```\ndokcer run -d -p 3306:3306 --name nav-mysql -e MYSQL_ROOT_PASSWORD=root -v /data/mysql:/data mysql\n```\n\n\u003e 启动node容器\n\n```\ndocker run -d -p 8360:8360 --name node-navigation --link nav-mysql:mysql node\n```\n\n\u003e 导入数据\n\n* 通过工具连接到mysql,创建数据库名**navigation**，然后导入sql文件\n* 修改项目配置文件 **src/common/config/db.js**\n\n```javascript\nmysql: {\n      host: 'nav-mysql',\n      port: '',\n      database: 'navigation',\n      user: 'root',\n      password: 'root',\n      prefix: 'nav_',\n      encoding: 'utf8'\n}\n```\n\n\u003e 恭喜你，可以访问了\n```\nhttp://ip:8630\n```\n\n\n[前端导航大全](back/favourite.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbui%2Fnavigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstbui%2Fnavigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbui%2Fnavigation/lists"}