ConfigHubPub / ConfigHubPlatform

ConfigHub Platform
https://www.confighub.com
GNU General Public License v3.0
65 stars 25 forks source link

Intellij Setup #72

Open krystofurr opened 6 years ago

krystofurr commented 6 years ago

Hi,

I was wondering if you could provide the steps to setup the project inside of Intellij. I have been recently using ConfigHub and would like to know more about how it works via debugging. I attempted this with the downloadable version that contains the TomEE server, but cannot get it to fully deploy ( assuming that I am missing something or likely multiple things ).

edoarsla commented 6 years ago

I am not running it out of IDEA. I build a war and than add it to TomEE webapps directory. I run ConfigHub on TomEE 1.7.5: https://www.apache.org/dyn/closer.cgi/tomee/tomee-1.7.5/apache-tomee-1.7.5-plus.tar.gz

krystofurr commented 6 years ago

Oh I see! Ok, no worries. I just thought you were using IntelliJ because of the .gitignore file having it specified. So you build the war manually and just add it to TomEE ?

krystofurr commented 5 years ago

Hi @edoarsla ,

Would you be able to provide the steps you take to compile and run the code locally ?

edoarsla commented 5 years ago

Ahh. Sorry. I've never done it. I'm a traditionalist and do everything from the console :)

krystofurr commented 5 years ago

Ah I see. I can see the benefits of that. Would it be possible to provide the console steps then?

edoarsla commented 5 years ago

Yes. I cannot do it right now, but will put it together asap.

krystofurr commented 5 years ago

That would be great! Thanks

lvramanan commented 5 years ago

@krystofurr Clone / Download the source from Git repo to your local directory [You could also directly clone from IntelliJ using VCS -> Check Out from Version Control -> Git and give the ConfigHub Repo URL]. Then in IntelliJ goto File -> New Project from Existing sources and choose the parent pom.xml of ConfigHubPlatform. In the Import Project from Maven dialog, select the options "Search for project recursively" and "Import Maven Projects automatically" and follow the wizard. Rest all will be self explanatory. Let me know if you face any other issues.

krystofurr commented 5 years ago

Thanks for the response @Ivramanan. I've done that but how do I execute the project? I assume I would need Tomcat linked in with IntelliJ to execute the application somehow.

lvramanan commented 5 years ago

@krystofurr you've to place the ROOT.war generated from within ConfigHubPlatform-master/rest project inside tomee/webapps. Then in IntelliJ click on Add Configuration to run the application and click on + button in the Run/Debug configuration dialog and choose Tomcat Server -> Local/Remote depending on whether you would like to connect to a local or remote tomcat instance. IJ then will ask you to pick a tomcat install path if Local is chosen and then fill in the rest of the details in the dialog and you're good to go. You can then run/debug the app from within IJ