# angular-start **Repository Path**: laixiangran/angular-start ## Basic Information - **Project Name**: angular-start - **Description**: 这是一个angular起步项目,持续维护中... - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-10-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # angular-start This is an angular project. ## 本地环境 ```shell node -v npm -v ``` Node >= 6.x NPM >= 3.10.x [下载node(npm已包含在node中)](https://nodejs.org/zh-cn/) ## 安装及启动 ```shell npm install -g @angular-cli@1.0.0 npm install npm start ``` ## 请求代理 通过配置`ng serve`的`--proxy-config`进行请求代理 [参考这里](https://github.com/angular/angular-cli/blob/master/docs/documentation/stories/proxy.md) ## 模拟请求 使用 [rap](http://rapapi.org/org/index.do) 模拟请求 ## 关于index.html 在本应用中,将环境分成开发环境(dev),测试环境(test),生产环境(prod)三种,因此会有三种environment文件和index-xxx.html(xxx指代dev或者test或者prod)。 index.html是根据编译时的环境由index-xxx.html生成的。 ## 构建 ### 测试环境 ```shell npm run build-test ``` ### 生产环境 ```shell npm run build-prod ``` ## 编译配置 [.angular-cli](https://github.com/angular/angular-cli/wiki/angular-cli)