石文娟 00e351d1fd Update README.md 5 years ago
..
e2e c83f9707dc [angular demo] - first commit 6 years ago
src 0ce19c6fbc [demo] - fix publish screen 5 years ago
.editorconfig c83f9707dc [angular demo] - first commit 6 years ago
.gitignore c83f9707dc [angular demo] - first commit 6 years ago
README.md 00e351d1fd Update README.md 5 years ago
angular.json c83f9707dc [angular demo] - first commit 6 years ago
browserslist c83f9707dc [angular demo] - first commit 6 years ago
karma.conf.js c83f9707dc [angular demo] - first commit 6 years ago
package.json c01784d94a [angular demo] - 使用 lib 下的 sdk 6 years ago
tsconfig.app.json c01784d94a [angular demo] - 使用 lib 下的 sdk 6 years ago
tsconfig.json c83f9707dc [angular demo] - first commit 6 years ago
tsconfig.spec.json c83f9707dc [angular demo] - first commit 6 years ago
tslint.json c83f9707dc [angular demo] - first commit 6 years ago

README.md

URTC-demo(Angular 版本)

运行步骤

  1. 添加配置

src/config 目录下创建 index.ts 文件,并配置 AppId 和 AppKey,示例代码:

const config = {
  AppId: 'urtc-xxxxxxxx',
  AppKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}

export default config;

注:

  1. AppId 和 AppKey 可从 URTC 产品中获取
  2. AppKey 不可暴露于公网,建议生产环境时,由后端进行保存并由前端调 API 获取
  1. 安装 npm 依赖包
npm install
  1. 执行运行命令
npm start
  1. 打开页面

浏览器打开 http://localhost:4200