commit | 946be4e44ec5dda63babce573447ae7f54b7d885 | [log] [tgz] |
---|---|---|
author | nzomkxia <z82507200@gmail.com> | Fri Oct 26 10:18:31 2018 +0800 |
committer | nzomkxia <z82507200@gmail.com> | Fri Oct 26 10:18:31 2018 +0800 |
tree | e478e450ba9e0cfcb824d43629bb7d516d796f32 | |
parent | c2e9a2276d2f96018a92c49bac9e02e50e2dc455 [diff] |
update codecov
application.properties
The generic configuration, shared byapplication-develop.properties
andapplication-production.properties
application-production.properties
(default)
The configuration for productionapplication-develop.properties
The configuration for develop
Clone source code on develop branch
Specify registry address in dubbo-admin-backend/src/resources/application-production.properties
Build
mvn clean package -Pproduction
will active production configuration(application-production.properties
)mvn clean package -Ddevelop
will active develop configuration(application-develop.properties
)
Start mvn --projects dubbo-admin-backend spring-boot:run
Visit http://localhost:8080
Configuration in IDE
Select configuration files in Intellij Idea
Choose profile file during project importing
Choose profile file in the Maven Projects tool window to activate profiles.
Select configuration files in Eclipse
dubbo-admin-backend
Run backend project
backend is a standard spring boot project, you can run it in any java IDE
Run frontend project
run with npm run dev
visit webpage visit http://localhost:8081
, frontend support hot reload.
CORS problem in this development mode, frontend will request localhost:8080
to fetch data, this will cause a CORS problem, so we add a configuration in I18nConfig.java
to support CORS, this configuration will only be active under develop mode, please select the right maven profile to support this.
Once deployed, you can check http://localhost:8080/swagger-ui.html to check all restful api and models
Apache Dubbo ops is under the Apache 2.0 license, Version 2.0. See LICENSE for full license text.