Developing AngularJS 1.6 application without NodeJS. - angularjs

What are the points to keep in mind for application using AngularJS v1.6 without Node.
This application will connect with Java API and using eclipse for local development.
What are the possible drawbacks one can face in such scenario including deployment scenario?
Thanks in advance.

You can have Angularjs application without node as independent.
node.js is used to write Javascript on the server side. You can install npm (node packaged modules) to use some awesome tools that will make your life as an angular developer much easier.
They use to go together as the MEAN Stack. You can have your Java API separately and a separate standalone SPA application which consumes those services.
There are certain things that you may need to consider such as,
CORS
Package Management
Bundling

Related

ADAL, Angular and WEB API strategy

I am a Microsoft developer. Making an ASP.NET application with authentication to Azure AD is very easy. The traditional multi page application with Vue (as an example) can be created within two minutes (by using the Authentication wizard in Visual Studio). However watching some Angular and NPM videos I liked the CLI/npm approach. So I decided to build my next project using ADAL.js, ASP.NET Core API and Angular 6 (deploy to Azure web app). But I haven't been able to succeed, and have only been met by complexity and issues.
Is the combo of these three technologies just a bad mix, Visual Studio not suited for SPA, or have I just gotten a bad start? Any suggestions on a good setup? I am considering to split the API and front end in two apps, so I can use clean Angular without having to worry about who is building TypeScript (VS or Node) etc. But then I need two web apps, and have to worry about CORS. Any suggestions here, what is a good setup to get started?
I have followed a lot of articles like:
http://www.talkingdotnet.com/how-to-create-an-angular-6-app-with-visual-studio-2017/
https://www.npmjs.com/package/microsoft-adal-angular6
But all of them had issues.
Refer to this Microsoft published GitHub sample. This sample demonstrates the use of ADAL for JavaScript for securing an AngularJS based single page app, implemented with an ASP.NET Web API backend, that calls another ASP.NET Web API using CORS.
Call an Azure AD protected Web API in an AngularJS Single Page App

Front end Angularjs + backend Jersey REST Services + need to set development environment

I am a beginner with Angularjs. I have my project configured in eclipse where Front end is Angularjs and backend is Jersey services. I am using the Tomcat application servers. The problem here is that every time I change the html or js code, I need to re-deploy the application on Tomcat. It's wasting a lot of time. Do you know what should be the correct approach in the development environment? Basically I don't want to re-deploy the application for the minor front end changes during the development.
Use node.js npm build function,
no its not only a language (people think that it is a language). but its like a framework I/O model for building application in runtime it is used in developement environment to save time.. also it have many utilities. ;)

Include the firebase-admin SDK module in angularjs

I want to use firebase-admin in angularJS but i don't know to do that.
any help will be appreciated. thanks.
The Firebase Admin SDK is designed for use in trusted environments, such as server-side node or server-side Java. It is not meant to be directly used in client-side environments, which is where Angular is targeted.
There are valid use-cases for showing the information from the Firebase Admin SDK in a client (such as an administrative web interface). But in those cases, you will have to create your own server-side node.js API (e.g. through Express) and consume that in your Angular app.

Can I use Ionic without node.js to build a hosted web app?

I am interested in using Ionic to build a web app. The tabs, form stuff, integration with angular.js... everything looks like it should work great.
However, Ionic also looks to be geared towards creating native apps for Android and IOS. It relies on node.js for services. I'll just be hosting it on my client's shared hosting account - I won't be able to get node.js working for it. I don't intend to develop the app to use any services, so I don't think I need node.js. I'll plan to communicate with my DB via http post.
I am interested to know - is there any reason I wouldn't do this? If I am not using any other means of communicating with a server, will I be okay without node.js? Is there a better option for creating an html5 mobile 1 page web app?
I also don't intend to access the camera, accelerometer, or any of that kind of thing, so I don't think I'll need cordova, either.
ionic uses node.js only for development, things like build, test and deploy
not necessarily for back-end proposes

Best way for deploy angular.js application made with yeoman?

I´m building application SPA using angular.js with yeoman which connect with a API RESTful made in Java using spring-MVC . i´m begginer for deploy web applications in angular and so i want to know some differents alternatives or best practice , for example deploy in http-server as apache, inside war using application-server as tomcat , or another option or suggestions .
Thanks a lot for help .
Then your frontend code is production-ready, just run $ grunt build
and serve static resources produced by Yeoman (Grunt in fact) by the very same server that is responsible for providing the backend of your app.
take a look at my answer to similar question, showing project structure and some necessary configuration for Yeoman & Spring-MVC.
In some more advanced deployments scenarios, there might be a need for introducing load-balancing and you might need separate servers for the frontend and backend, but we are talking about basic config here.

Resources