Sharing Top Content from the Angular-sphere.

How to deploy AngularJS application to Apache and Java Server

  • so how to deploy AngularJS application to Apache and Java Server.
  • when ever any angularjs based application development start or even in the draft phase.
  • follow the angularjs cli https://cli.angular.io/ to create an application.
  • We have to copy the dist files and paste it in the apache or tomcat project application inside the webcontent folder.
  • You can enjoy the angularjs application in your server with out having any hard dependency on the nodejs.

you can start development in the nodejs server and deploy application any of the server or cloud like Apache server or tomcat any Java server.

@manojchaurasiya: No more dependency on the MEAN stack. Do the code once and run anywhere.#riaconsultant #angularjs #nodejs #apache

Hello Friends,

After a long time, I am again back to start putting the new thing on the blog. Today I am happy to explain the topic. so how to deploy AngularJS application to Apache and Java Server.

when ever any angularjs based application development start or even in the draft phase. The expectation is infrastructure system should have the nodejs. the reason behind a lot of npm dependencies. Those dependencies can not over come. As a developer that is required. Even we have nodejs server that facilitates as to run the server.

angularjs 4 have all the code based in TypeScript. That have compiled into the JavaScript. So AngularCli have provision to compile the application and make a build. That build we can use it any of the web server.

follow the angularjs cli https://cli.angular.io/ to create an application.

deployment in the nodejs will take care by the ng serve command in the terminal.

for build the application need to run ng build command in the terminal.

now we will get the dist folder inside our project. That has html and compiled javascript file. We have to copy the dist files and paste it in the apache or tomcat project application inside the webcontent folder.

before the deployment needs to change the to . You can enjoy the angularjs application in your server with out having any hard dependency on the nodejs.

for more information download the code.

I hope you enjoying the article.

How to deploy AngularJS application to Apache and Java Server

Comments are closed, but trackbacks and pingbacks are open.