{"id":16264906,"url":"https://github.com/itcnz/angular-project","last_synced_at":"2025-03-19T22:30:37.493Z","repository":{"id":215851535,"uuid":"120863708","full_name":"ITCNZ/angular-project","owner":"ITCNZ","description":"angular4+ 完整项目结构，使用angular-cli为基础搭建，包括完整目录结构，网络请求，组件开发等。","archived":false,"fork":false,"pushed_at":"2018-03-15T02:16:00.000Z","size":35,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T11:21:33.333Z","etag":null,"topics":["angular","ng-route","typescript","webpack"],"latest_commit_sha":null,"homepage":"","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/ITCNZ.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":"2018-02-09T05:57:31.000Z","updated_at":"2021-08-31T07:55:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"9969e446-7f2c-47bf-a4c4-57aa884e2f2f","html_url":"https://github.com/ITCNZ/angular-project","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":"0.36363636363636365","last_synced_commit":"7a0bfb7c65776a768ec771a5b2199e9a17218f70"},"previous_names":["itcnz/angular-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITCNZ%2Fangular-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITCNZ%2Fangular-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITCNZ%2Fangular-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITCNZ%2Fangular-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ITCNZ","download_url":"https://codeload.github.com/ITCNZ/angular-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244515598,"owners_count":20464917,"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":["angular","ng-route","typescript","webpack"],"created_at":"2024-10-10T17:04:21.829Z","updated_at":"2025-03-19T22:30:37.487Z","avatar_url":"https://github.com/ITCNZ.png","language":"TypeScript","readme":"# angular-project\n\n\u003e 该项目是以angular-cli为基础开发的。 [angular-cli](https://github.com/angular/angular-cli) version 2.0.0-beta.28.3.\n\n\u003e NODE版本最好小于node: \"\u003c8.0.0\"\n\n## 项目结构以及说明\n\n\u003e 创建项目结构;\n\n\u003e src/util 这主要为项目配置文件夹。\n目前包括本地环境监测util.config.ts;\n远程API请求的封装\n\n\u003e src/common/components 公共组件库\n例如:src/common/components/model 为一个模态框组件\n\n\u003e src/api  主要存放每个模块的请求api接口。\n例如:api.user.ts 则为用户模块的接口\n\n\u003e angular UI库的添加\n本案例使用material UI库进行演示开发\n\n\u003e 基本路由的配置,将公共路由提出到router.ts文件\n\n\u003e 静态公共资源库src/assets\n\n## npm install\n\u003e 启动项目前,请确保安装了npm包。\n\n\u003e 因为该依赖是最新的,所以如果包安装不对,可能会报错,一般情况下执行命令即刻解决:\nnpm install @angular/common@latest @angular/compiler@latest @angular/compiler-cli@latest @angular/core@latest @angular/forms@latest @angular/http@latest @angular/platform-browser@latest @angular/platform-browser-dynamic@latest @angular/platform-server@latest @angular/router@latest @angular/animations@latest typescript@latest --save\n\n## Development server\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\nBefore running the tests make sure you are serving the app via `ng serve`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitcnz%2Fangular-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitcnz%2Fangular-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitcnz%2Fangular-project/lists"}