Is gulp-connect a suitable server for an AngularJs app - angularjs

Is gulp-connect a suitable server for an AngularJs app in a Production environment? If not is their an alternative I can use with gulp and nodejs?
I've started learning AngularJs and am using gulp-connect in my dev environment and am wondering if it would be suitable for production.

I would suggest to have a look on http://expressjs.com/ and http://restify.com/ also you can see bit of a comparison in the following article. http://techblog.netflix.com/search?q=node.js

Related

Can KNIME be used in the DevSpace like react projects?

Using "https://devspace.sh/" in Ubuntu, Is it possible to have KNIME, Kafka and python be used for containerizing in dev space? Currently their documentation is about the react, vue and other web based apps only.
Yes. DevSpace works with any language, any framework and any IDE. So, you can definitely work on a python application using the hot reloading feature and then also deploy a Kafka cluster using DevSpace which you are using from the python application.
Check out the Helm deployments section for details on how to deploy Kafka using DevSpace's Helm integration: https://devspace.sh/cli/docs/configuration/deployments/helm-charts

Developing AngularJS 1.6 application without NodeJS.

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

How to setup a build+deploy environment for an angularjs/asp.net web api?

I have an angularjs app with a c# webapi . The repo for the angular app is stash and the c# restapi is in TFS. Is it possible/easy to create an automated build and deployment environment for this stack? What are possible solutions for this? Does anyone have a blogpost abt. this?
There is two way to integrate with Bitbucket repo and TFS for now:
Option 1: One-Time import of source code form Bitbucket
Option 2: Stick with Bitbucket and trigger CI on VSTS/TFS
Note it's not a real CI
While this is not exactl what some people might expect from CI
(because it doesn’t really build on every check-in) for most scenarios
this should be good enough. Especially if your build process is
running for a longer time this shouldn’t be an issue at all.
Details please refer this tutorial: Integrating VSTS with Bitbucket, you could also take a look at this blog: Visual Studio Team Services: Connecting a BitBucket Repository
For the CI/CD of angular app/angularjs/asp.net web api, even though there is not a blog full described everything. You still could refer some similar related blogs(even for Azure) and setup your own pipeline, use NPM to install packages/dependencies:
Setting up a CI pipeline for deploying your Angular application to
Azure using Visual Studio Team Services and GitHub
Define a continuous integration build for your Node.js app
How to deploy a pure Angular application from Visual Studio Team System to Azure websites

Recommended development environment for Cordova / AngularJS / Ionic

I am getting started with building "hybrid" mobile apps using Cordova and AngularJS with Ionic. I am able to build out a sample app by creating the html, js and css files locally and running these in a browser using file:// url's. This works fine, and when ready I can run the cordova build process and run the app in the android emulator or deploy the apk to my device. This all works fine for my simple demo apps. But now as I start to build out an app which will use an Angular service to either load JSON from local storage (if offline), or load the JSON from a remote REST API, I am running into problems. As I am developing, opening the app from a file url (file://myapp/index.html) will result in the browser not being able to make an http call to the REST service (different origins, etc).
This seems to be a very basic issue - so my question is, how do others develop and test Cordova apps in general? Do you always develop with the "www" files on a web server, like Node? If so, does the issue of http:// requests from file:// url's become a problem when you use those files in the Cordova app?
CORRECTION: I am able to access remote REST services from a page on the local file system, as long as the remote service includes "Access-Control-Allow-Origin" header. So, I think that answers my question. I can develop with all of my html and js on local file system, have the JS make remote calls, and test by running in a browser using file:// url's. But is this generally the development environment in which you would develop a Cordova/PhoneGap app?
I can recommed Intel XDK ( fromer app mobi)
http://xdk-software.intel.com/
It has a good emulator(s) on desktop and can
It works fine with ionic framework and angular extensions ( just comment out the cordova.js
script and add intelxdk.js
<!--<script src="cordova.js"></script>-->
<script src='intelxdk.js'></script>
It can also cloud test with a wrapper app and cloud build for appstores
Works fine so far so I can recommend this
I like AppGyvers ( sterois) platform too but it does not work so good on android yet
For Cordova apps, I start development locally on my machine with Chrome. I have to run Chrome with disabled security (allowing cross origin).
On OSX, you can run Chrome with security disabled by running the following terminal command (make sure Chrome is fully closed first).
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --allow-file-access-from-files
Once I get to a point where I need to start integrating Cordova Plugins, I then build out the Cordova project and test with an Android tablet (the Android emulator is horrible). For remote web debugging on Android, I use weinre.
I never personally build out or test my code on a web server, it's always local on my desktop or mobile device. I make all web service calls via jQuery's Ajax.
There are many hybrid app development tools out there. However, if you are looking for developing a hybrid app (phonegap + angularJS + backend), I would like to recommend Monaca. I've just recently discover it. It is very cool since it has phonegap inside its framework and its own backend. Moreover, it also has a UI framework called OnsenUI which is based on Topcoat and AngularJS.
It also provides native components to use in your hybrid apps. What is impressive about it, you don't even need to build and install your app to your device everytime during development. That's what I love the most about this.
I hope it helps since I think it is just like what you are asking for. I'm just a novice developer and I find it is very easy to use.
take a look to visual studio tools for cordova cordova-vs, it include ripple emulator and a lot of good stuf
update:
i recently found this ide neodym , it looks promising

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