[Feature] Dubbo Admin provides service mock ability. (#838)

* commit the API

* develop the front page.

* add edit logic

* develop the front page and test.

* ui change

* change the config key and group

* change rule enable to config center.

* update GlobalMockRule update logic.

* remove the GlobalMockRule

* [feature admin mock] move the diver dependency out of the project.

* [feature admin mock] remove the contributor name and date in javadoc.

* [feature admin mock] optimize the delete mock rule step.

* [feature admin mock] fix the dialog cannot be closed when delete successfully.

* [feature admin mock] add the support for h2 database.

* [feature admin mock] rollback to zookeeper registry.

* [feature admin mock] fix properties.

* [feature admin mock] change mock-admin-api maven version.

* [feature admin mock] fix the feedback and add the parameters in docker-compose.

* [feature admin mock] fix the ci problem.

* [feature admin mock] fix the ci problem.

* [feature admin mock] removed unused import.

* [feature admin mock] add license.
25 files changed
tree: 44c9484d3e66bf8288fd6cb4fbf67f7d35294eb6
  1. .github/
  2. .mvn/
  3. codestyle/
  4. doc/
  5. docker/
  6. dubbo-admin-distribution/
  7. dubbo-admin-server/
  8. dubbo-admin-test/
  9. dubbo-admin-ui/
  10. .asf.yaml
  11. .codecov.yml
  12. .gitignore
  13. DISCLAIMER
  14. LICENSE
  15. mvnw
  16. mvnw.cmd
  17. NOTICE
  18. pom.xml
  19. README.md
  20. README_ZH.md
README.md

Dubbo Admin

GitHub Workflow Status codecov license Average time to resolve an issue Percentage of issues still open

中文说明

Quick start

Screenshot

index

Service Governance

service governance follows the version of Dubbo 2.7, and compatible for Dubbo 2.6, please refer to here

admin UI

  • Vue.js and Vue Cli
  • dubbo-admin-ui/README.md for more detail
  • Set npm proxy mirror: if you have network issue, you can set npm proxy mirror to speedup npm install: add registry =https://registry.npm.taobao.org to ~/.npmrc

admin Server

Production Setup

  1. Clone source code on develop branch git clone https://github.com/apache/dubbo-admin.git

  2. Specify registry address in dubbo-admin-server/src/main/resources/application.properties

  3. Build

    • mvn clean package -Dmaven.test.skip=true
  4. Start

    • mvn --projects dubbo-admin-server spring-boot:run
      OR
    • cd dubbo-admin-distribution/target; java -jar dubbo-admin-0.1.jar
  5. Visit http://localhost:8080

  6. Default username and password is root


Development Setup

  • Run admin server project backend is a standard spring boot project, you can run it in any java IDE
  • Run admin ui project run with npm run dev.
  • visit web page visit http://localhost:8081, frontend supports hot reload.

Swagger support

Once deployed, you can check http://localhost:8080/swagger-ui.html to check all restful api and models

License

Apache Dubbo admin is under the Apache 2.0 license, Version 2.0. See LICENSE for full license text.