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

Implement Spring Boot #8

Closed mhallo closed 6 years ago

mhallo commented 6 years ago

Resolves #1

Follow the instructions on the branches README.md

You do not download gradle to run the commands. The purpose of gradle is so that any person can clone the repository and can build the project without having to install gradle on their machine.

So please follow the instructions mentioned and tell me if you have any issues.

I have been able to build on both of my Windows machines personally.

bmartin5263 commented 6 years ago

I was able to build it using ./gradle build, however I got an error:

mhallo commented 6 years ago

And this was on the bootRun step?

Perhaps a clean project directory might help. I had to retry that on my laptop when I was working on it. I did this by just removing all of the project files on my computer and then recloning the repo, and then checking out this branch.

Because

org.csc394.findadev.FindadevApplication

Is an old canned name I came up with.

bmartin5263 commented 6 years ago

Ah my apologies, it was on the build step not on the bootRun. Have you encountered this error before?

mhallo commented 6 years ago

I did before. A clean pull of the repo resolved it.

Gradle can't find the file I referenced above there, and is failing.

Rather than digging thru the gradle configs just try a clean pull / build

bmartin5263 commented 6 years ago

Gotcha, how can I do a clean pull from IntelliJ?

mhallo commented 6 years ago

I'd say, go to the launch screen, and then Check Out from Version control.

From there you can enter your github credentials and pull this CSC394/Project repo.

From there, checkout the Implement branch (my bad for not naming the branch a better name, getting git to cooperate was a pain)

bmartin5263 commented 6 years ago

Should I do "Checkout as Local Branch", or do I need to use "Pull"? Sorry for all the questions I want to make sure I do it right.

mhallo commented 6 years ago

No problem. When I say checkout, you just checkout that remote repository as a local branch.

From there you can try running the commands.

bmartin5263 commented 6 years ago

Success! Its running now and I checked 8080. Is it normal for it to be hanging on :bootRun 80% Executing?

mhallo commented 6 years ago

Yeah, that's a known gradle bug, but it wont be something that we should be concerned over. (I tried to solve it during an internship, wasn't worth my time to dig into it).

Glad it works! Excited to get going. Gradle is a super helpful tool, and will only be more helpful.

mhallo commented 6 years ago

If everyone else can check if this works for their machines, that'd be great!

jonathan7 commented 6 years ago

This builds for me on linux just fine, I see "Hello CSC 394 Teammates"

mhallo commented 6 years ago

Perfect, that's the intended result.