If you already have a harbor backend environment, you can build a frontend development environment with the following configuration.

    1. Create the file proxy.config.json in the directory harbor/src/portal,and config it according to the sample below.

      NOTE: You should replace “hostname” with an available Harbor hostname.

      1. [
      2. {
      3. "context": [
      4. "/api",
      5. "/c",
      6. "/i18n",
      7. "/chartrepo",
      8. "/LICENSE",
      9. "/swagger.json",
      10. "/swagger2.json",
      11. "/devcenter-api-2.0",
      12. "/swagger-ui.bundle.js"
      13. ],
      14. "target": "https://hostname",
      15. "secure": false,
      16. "changeOrigin": true,
      17. "logLevel": "debug"
      18. }
      19. ]
    2. Open the terminal and run the following command,install npm packages as 3rd-party dependencies.

      1. cd harbor/src/portal
      2. npm install
    3. Execute the following command,serve Harbor locally.

      1. npm run start
    4. Then you can visit the Harbor by address: https://localhost:4200.