Giter Site home page Giter Site logo

nongqianqian / incubator-dubbo-ops Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apache/dubbo-admin

0.0 1.0 0.0 1.91 MB

The ops and reference implementation for Apache Dubbo (incubating)

Home Page: https://dubbo.incubator.apache.org

License: Apache License 2.0

Java 84.14% JavaScript 4.28% HTML 0.17% Vue 10.24% CSS 1.18%

incubator-dubbo-ops's Introduction

Dubbo ops

Build Status codecov license

中文说明

Screenshot

index

Frontend

Backend

  • Configuration files
  • application.properties
    The generic configuration, shared by application-develop.properties and application-production.properties
  • application-production.properties (default)
    The configuration for production
  • application-develop.properties
    The configuration for develop

Production Setup

  1. Clone source code on develop branch

  2. Specify registry address in dubbo-admin-backend/src/resources/application-production.properties

  3. Build

    • select configuration files via command line
    • mvn clean package -Pproduction will active production configuration(application-production.properties)
    • mvn clean package -Ddevelop will active develop configuration(application-develop.properties)
  4. Start mvn --projects dubbo-admin-backend spring-boot:run

  5. Visit http://localhost:8080


Development Setup

  • Configuration in IDE

    • Select configuration files in Intellij Idea

      1. Choose profile file during project importing

        1. In the Import from Maven page where IntelliJ IDEA displays the profiles, select develop maven profile: profile
        2. Select Next and finish import
      2. Choose profile file in the Maven Projects tool window to activate profiles.

        1. Open the Maven Projects tool window.
        2. Click the Profiles node to open a list of declared profiles.
        3. Select the appropriate checkboxes to activate develop maven profile.
    • Select configuration files in Eclipse

      1. import project
      2. In Project Explorer, right click dubbo-admin-backend
      3. Choose Maven->Select Maven Profiles
      4. Select develop maven profile profile-eclipse
  • 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.

Swagger supoort

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

License

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

incubator-dubbo-ops's People

Contributors

beiwei30 avatar chenzhiguo avatar chickenlj avatar giraffe8 avatar htynkn avatar huadong avatar kimmking avatar lovepoem avatar majinkai avatar mercyblitz avatar nzomkxia avatar qingdengyue avatar ralf0131 avatar realhj avatar shuaijunlan avatar sinelu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.