*Before install nodejs and npm
Create a new Java Web Application in intellij
Edit the created index.jsp and set a title and some content
1 2 3 4 5 6 7 8 9 |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Testing</title> </head> <body> <h1>Hello Angular</h1> </body> </html> |
Add in a new runtime configuration to launch the web application in tomcat. (Make sure to add the war:exploded to deployment)
Start it up to insure your page is rendered.
Next step open the Terminal Tab of intellij
1 2 3 4 |
git clone --depth=1 https://github.com/angular/angular-seed.git rm -rf .git mv angular-seed/ angular npm install |
Finally add the angular/app folder to your deploy.
Select the web module facet in the module you have created and add the app folder to the /app path
restart the app server from intellij
head to localist:8080/app to run the angular seed part of the application.