How to deploy Angular and Java in Heroku?

Asked

Viewed 316 times

0

I have a web application in Angularjs that communicates with a backend in Java. I would like a hosting and I ended up seeing about Heroku. Is it possible for me to buy a single plan (for example, the $7 plan) and host the two applications? Or I’ll have to buy it as if it were two lodgings to store separately?

1 answer

0


Good evening Rodrigo, hosting has to be for Java, taking into account that you will generate a file . WAR, and this file will contain both java code and angular.

  • Got it, perfect. Even though I have Node dependencies, I compile the front and "store" together with the Java project and then generate a single . War? Thank you.

  • What framework are you using on the back? And what version of java are you using?

  • For now I only use spring-boot and Java 8. I’ve seen some frameworks that can do this integration, but I haven’t tested it yet.

  • But what version of the angular? is the 2?

  • Oh yes, it’s 1.4

  • tries this link, which shows how to use the angler plus spring: http://javasampleapproach.com/spring-framework/spring-boot/configure-angularjs-springboot

  • Thank you very much. Just discovering that there is possibility to integrate the two applications has already helped a lot.

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.