Last active
September 23, 2016 06:29
-
-
Save Panthro/d98da345b83d51c0dbf6 to your computer and use it in GitHub Desktop.
Move jhipster dafault angular to admin and enable thymeleaf as view resolver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Move all content from the root angular app to admin folder | |
mv src/main/webapp/ src/main/webapp_admin | |
mkdir -p src/main/webapp/ | |
mv src/main/webapp_admin/ src/main/webapp/admin | |
#find and replace webapp | |
#couldnt build a sed command for now, so here's the list of files to change | |
# modified: .bowerrc | |
# modified: .gitignore | |
# modified: Gruntfile.js | |
# modified: bower.json | |
# modified: package.json | |
# modified: pom.xml | |
# modified: src/main/webapp/admin/index.html | |
# modified: src/test/javascript/karma.conf.js | |
#move api calls from angular from 'api/ to '/api/ | |
#again no sed command, so here's the list of files | |
# modified: src/main/webapp/admin/scripts/components/admin/audits.service.js | |
# modified: src/main/webapp/admin/scripts/components/admin/logs.service.js | |
# modified: src/main/webapp/admin/scripts/components/auth/provider/auth.session.service.js | |
# modified: src/main/webapp/admin/scripts/components/auth/services/account.service.js | |
# modified: src/main/webapp/admin/scripts/components/auth/services/activate.service.js | |
# modified: src/main/webapp/admin/scripts/components/auth/services/password.service.js | |
# modified: src/main/webapp/admin/scripts/components/auth/services/register.service.js | |
# modified: src/main/webapp/admin/scripts/components/auth/services/sessions.service.js | |
# modified: src/main/webapp/admin/scripts/components/user/user.service.js | |
#metrics health and dump api also needs to me moved | |
#again no sed, so just replace 'metrics/, 'health/ and 'dump/ to '/* in the following file | |
# modified: src/main/webapp/admin/scripts/components/admin/monitoring.service.js | |
#configprops also needs to me moved | |
#again no sed, so just replace 'configprops/ '/configprops in the following file | |
# modified: src/main/webapp/admin/scripts/components/admin/configuration.service.js | |
#ok, you now have your angular jhipster application working on /admin/index.html | |
#TODO find a way to make /admin/ work without the index.html | |
#TODO find a way to make grunt serve /admin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment