Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 641 Bytes

README.md

File metadata and controls

38 lines (34 loc) · 641 Bytes

SpringBoot-Angular-Task

build angular app

npm run build
  1. build angular app
  2. start spring-boot-app
  3. open http://localhost:8080

angular app development

http://localhost:4200

npm run start

proxy config

{
  "/api/*": {
    "target": "http://localhost:8080/",
    "secure": false
  }
}
  1. Open package.json
  2. Find start script
  3. Change to below code
ng serve --proxy-config proxy-config.json
  1. Create postbuild and predeploy script in package.json

heroku config

heroku config:set MAVEN_SETTINGS_PATH=settings.xml
git push heroku master