Separating jhipster back-end and front-end into two projects?

后端 未结 5 2080
春和景丽
春和景丽 2020-12-13 21:15

I\'m trying jhipster with token-based authentication. It works perfectly.

Now, I want to run back-end and front-end code on different domains. How c

5条回答
  •  鱼传尺愫
    2020-12-13 22:02

    I'm using Jhipster version 4.14.5

    • I have copied the following files to a project-forntend folder:

      .bowerrc
      gulp
      pom.xml
      yarn.lock
      gulpfile.js
      readme.md

      bower_components
      .gitattributes
      src/main/web

      bower.json
      .gitignore
      package.json
      target/www

    • Then ran:

      yarn install

      bower install

      gulp install

    • Then changed to the gulp/config.js file to :

      apiPort: 8081

      uri: 'http://localhost:'

    • Then started the project by running:

      gulp serve

提交回复
热议问题