commit | 7f667e6e570666f2daa7e417195b024a724dc376 | [log] [tgz] |
---|---|---|
author | nzomkxia <z82507200@gmail.com> | Fri Oct 26 14:55:19 2018 +0800 |
committer | nzomkxia <z82507200@gmail.com> | Fri Oct 26 14:55:19 2018 +0800 |
tree | 2828a3a1027ac2c49e2b131d114f72e4c81784ec | |
parent | 1a246051b2ed72212eec524621d97528ee5cda4e [diff] |
add chinese doc
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
develop
maven profile: Choose profile file in the Maven Projects tool window to activate profiles.
develop
maven profile.Select configuration files in Eclipse
dubbo-admin-backend
develop
maven profile 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 supports hot reload.
CORS problem for convenien of development, we deploy frontend and backend separately, so the frontend supports hot reload. In this 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.