Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 526 Bytes

README.md

File metadata and controls

32 lines (29 loc) · 526 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

ng serve

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