# webapp-demo **Repository Path**: leitp/webapp-demo ## Basic Information - **Project Name**: webapp-demo - **Description**: No description available - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-12-16 - **Last Updated**: 2021-03-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目说明 * 基于AngularCLI7.3.x与maven协同构建的前端项目 * 前端项目位于`src/main/frontend`目录下,所以前端代码均在此文件目录中,具体可查看frontend中的readme.md, 前端在终端输入命令:cd frontend进入到frontend中进行开发,安装项目依赖后,可以使用ng serve,ng build等angularCLI命令。 * pom.xml为maven项目配置文件 * 代理配置位于src/main/resources/config/application.yml文件中,如下: ```yml server: port: 9000 ### 本机端口号 session: timeout: 14400 spring: application: name: JSCTO_TICSP_MST cas: server-url-prefix: http://192.168.8.208:9443/hm_cas_server ### cas_server server-login-url: http://192.168.8.208:9443/hm_cas_server/login ### cas认证登录地址 client-host-url: http://localhost:9000 ### 本机访问地址,端口号与上面sever中的port端口号要一致 application: httpProxy: routes: gateway: ### gateway代理配置 path: /gateway/* url: http://192.168.8.208:8888 with-sign: appId: admin1 secretKey: CBB3E6AE82F47C8D471EBC6C6D7EDAA1 fileServer: ### fileServer配置 path: /file/* url: http://192.168.8.21:8081/sims_file/rest/v1/file ``` * target为maven打包后生成的文件 ## 项目运行 1. 终端使用`cd src/main/frontend`,进入frontend目录下,`npm install`安装项目依赖; 2. 项目依赖安装成功,运行`npm run develop`,编译完成后,进入下一步maven install 打包; 3. 使用maven打包后,启动后在浏览器中运行 [http://localhost:9000](http://localhost:9000) 即可访问