|
|
5 years ago | |
|---|---|---|
| .. | ||
| public | 6 years ago | |
| src | 5 years ago | |
| .browserslistrc | 6 years ago | |
| .editorconfig | 6 years ago | |
| .eslintignore | 6 years ago | |
| .eslintrc.js | 6 years ago | |
| .gitignore | 6 years ago | |
| README.md | 5 years ago | |
| babel.config.js | 6 years ago | |
| package.json | 5 years ago | |
src/config 目录创建 index.js 文件,并配置 AppId 和 AppKey,示例代码:
const config = {
AppId: 'urtc-xxxxxxxx',
AppKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}
export default config;
注:
- AppId 和 AppKey 可从 URTC 产品中获取
- AppKey 不可暴露于公网,建议生产环境时,由后端进行保存并由前端调 API 获取
npm install
npm start
浏览器打开 http://localhost:8080