CSC394 / Project

A Web Service that will help employers not only find qualified employees, but employees that fit their culture
0 stars 0 forks source link

Angular #10

Closed jonathan7 closed 6 years ago

jonathan7 commented 6 years ago

hopefully, Resolves #9

This adds an Angular project (under Project\src\main\webapp)

I moved HelloController's endpoint to localhost:8080/SpringHello, so now the angular project is being served from the main index.

Angular methods can access Spring endpoints for APIs, and it should all build whenever gradle bootRun is called.

mhallo commented 6 years ago

I've been encountering a build failure at the build step ':buildAngular'

truncatedstacktrace I've attached the stacktrace.

From my debugging so far, the file ng.cmd does not get created (if it is supposed to or if it is downloaded).

I'll keep looking to see if I can resolve this.

Also, are you able to create branches on this project? I think you should be able to create new branches and then upload your changes so that we won't be having to get PRs from multiple forked repos (which could run into some version issues).

mhallo commented 6 years ago

I discovered the issue.

You had the Angular CLI installed on your local machine, so I had to ensure I had installed it globally on my personal machine.

npm install -g @angular/cli resolved the issue and was able to make the build pass.

I'm curious if there's a way that we can avoid having to globally install the CLI, but we'll have to see.