# erupt-web **Repository Path**: scada/erupt-web ## Basic Information - **Project Name**: erupt-web - **Description**: Erupt 框架前端源码, 通过 JSON Schema 自动构建表单,实现了erupt零前端代码能力 - **Primary Language**: TypeScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.erupt.xyz - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 184 - **Created**: 2021-04-14 - **Last Updated**: 2021-04-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ---

logo

Erupt 框架前端源码

https://www.erupt.xyz

---

通过 JSON Schema 自动构建表单,实现了erupt零前端代码能力

---

Erupt Framework maven-central jdk 8+ license Apache 2.0 Gitee star Gitee fork GitHub stars GitHub forks

Github 仓库   |   码云仓库   |   🦅 官方网站   |   在线体验   |   📕 使用文档

QQ交流群:821389129 🔥

--- ## 仓库地址 | | Github | 码云 | | ---- | ---- | ---- | | 后端源码 | https://github.com/erupts/erupt | https://gitee.com/erupt/erupt | | 前端源码 | https://github.com/erupts/erupt-web | https://gitee.com/erupt/erupt-web | ## 环境搭建 在开始之前,请确保你的开发环境中包括 Node.js 和 npm 包管理器。 Angular 需要 Node.js 版本 10.9.0 或更高版本。 要检查你的版本,请在终端/控制台窗口中运行 node -v ## 使用方法 1. 安装 yarn > npm install -g yarn 2. 构建: > yarn install 3. 修改配置文件: > /src/environments/environment.ts 4. 启动: > yarn run start 5. 打包编译: > yarn run build ## 核心技术栈 Angular / TypeScript / RxJS / Less / ng-zorro-antd / ng-alain ## 跨域解决办法 ```java @Configuration public class CorsConfig { @Bean public CorsFilter corsFilter() { UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); CorsConfiguration corsConfiguration = new CorsConfiguration(); // 根据实际情况修改如下配置的值 corsConfiguration.addAllowedOrigin("*"); // 允许访问源地址 corsConfiguration.addAllowedHeader("*"); // 允许头 corsConfiguration.addAllowedMethod("*"); // 允许方法 source.registerCorsConfiguration("/**", corsConfiguration); // 对接口配置跨域设置 return new CorsFilter(source); } } ``` ---