Environment Prepare
Install node_modules:
npm install
or
yarn
Change your config
src->config
如果以 ip+端口形式配置 建议不要修改端口号 按照下方对应关系进行配置
export const API_URL = 'http://43.154.157.177:10002';
export const CHAT_URL = 'http://43.154.157.177:10008';
export const ACCOUNT_URL = 'http://43.154.157.177:10009';
Start project
npm start
Build project
generate resource folder
dist
npm run build
Check code style
npm run lint
You can also use script to auto fix some lint error:
npm run lint:fix
Description
Languages
TypeScript
89.6%
JavaScript
9.3%
Less
1%