{"id":16429598,"url":"https://github.com/stbui/navigation-angular","last_synced_at":"2026-05-05T18:40:20.852Z","repository":{"id":83892487,"uuid":"76648546","full_name":"stbui/navigation-angular","owner":"stbui","description":"前端导航大全","archived":false,"fork":false,"pushed_at":"2017-07-26T05:01:47.000Z","size":39473,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T00:37:38.865Z","etag":null,"topics":["angular","docker","mysql","thinkjs"],"latest_commit_sha":null,"homepage":null,"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-12-16T11:27:53.000Z","updated_at":"2020-04-27T09:21:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"0943246a-f487-486e-8724-9714da4d159e","html_url":"https://github.com/stbui/navigation-angular","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stbui/navigation-angular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stbui","download_url":"https://codeload.github.com/stbui/navigation-angular/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fnavigation-angular/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32663431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["angular","docker","mysql","thinkjs"],"created_at":"2024-10-11T08:23:37.201Z","updated_at":"2026-05-05T18:40:20.803Z","avatar_url":"https://github.com/stbui.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[前端导航大全](back/favourite.md)\n----------\n\n在线Demo：[http://stbui.com](http://stbui.com)\n\n```bash\ngit clone https://github.com/stbui/navigation-angular.git\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 mysql\n```\n\n\u003e 进入到项目目录下，执行下面命令构建镜像\n\n```\ndocker build -t navigation .\n```\n\n\u003e 启动mysql容器\n\n```\ndocker run -d -p 3306:3306 --name nav-mysql -e MYSQL_ROOT_PASSWORD=root mysql\n```\n如果需要数据持久化，使用下面命令创建\n```\ndocker 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 -e MYSQL_HOSTNAME=nav-mysql navigation\n```\n\n\u003e 导入数据\n\n进入刚刚运行的容器\n```\ndocker exec -it aae /bin/bash\n```\n在mysql容器中执行 *mysql* 命令创建数据库名为 **navigation**\n```\nmysql -uroot -proot\ncreate database navigation\n```\n然后退出mysql容器， 导入sql文件到容器中\n```\ndocker exec -i aae mysql -uroot -proot navigation \u003c ./navigation.sql\n```\n\n\u003e 恭喜你，可以访问了\n\n```\nhttp://ip:8630\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbui%2Fnavigation-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstbui%2Fnavigation-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbui%2Fnavigation-angular/lists"}