|
|
5 年之前 | |
|---|---|---|
| .. | ||
| e2e | 6 年之前 | |
| src | 5 年之前 | |
| .editorconfig | 6 年之前 | |
| .gitignore | 6 年之前 | |
| README.md | 5 年之前 | |
| angular.json | 6 年之前 | |
| browserslist | 6 年之前 | |
| karma.conf.js | 6 年之前 | |
| package.json | 5 年之前 | |
| tsconfig.app.json | 6 年之前 | |
| tsconfig.json | 6 年之前 | |
| tsconfig.spec.json | 6 年之前 | |
| tslint.json | 6 年之前 | |
src/config 目录下创建 index.ts 文件,并配置 AppId 和 AppKey,示例代码:
const config = {
AppId: 'urtc-xxxxxxxx',
AppKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}
export default config;
注:
- AppId 和 AppKey 可从 URTC 产品中获取
- AppKey 不可暴露于公网,建议生产环境时,由后端进行保存并由前端调 API 获取
在本地demo目录下,执行以下操作:
npm install
npm start
浏览器打开 http://localhost:4200