how can run and edit locally this Angular website with VS - javascript

I am new in Angular things and need to run and edit a angular website. The files I got from the web server (windows Server 2012).
This is the web server directory
Then tried to remote edit the website with Webmatrix, but this did not work because there is no proper debugging.
Now want to run and edit the website locally.
The database i could setup locally. She is the base for the (asp.net mvc) webservice the website runs with.
For edit and debugging the webservice and website structure i want use Visual Studio, but i dont know how to bring in all the files and make them run.

I would use the new VS Code editor. as this is all client side.
https://www.visualstudio.com/en-us/products/code-vs.aspx
and if you create a website in IIS, and copy the code into the WWWROOT directory you will be good to go.

Related

Publish a javascript file on a C# publication

Just a quick question, so I might continue with my work or change it.
I want to implement a javascript file into the publication of a C# webapp its .NET and the publish is through visual studio.
"node api.js" would be the command
This js is an api, its just listening to a port for when a request come in. This js code, has nothing to do with the rest of the project.
I just want that when we publish the webapp the little js file executes in the back listening.
Is this possible?

Is there a way to implement IPC to a HTML5 web browser (served using LAMP server)?

Forgive me if this is a silly question but I could really use advice on the direction to look at for a project I am working on.
I made a webserver that streams RTSP to a webpage using LAMP, php and mysql; and served a html template. This was done on a raspberry pi and it all works fine as is. Also done on an Ubuntu VM.
EXAMPLE I FOLLOWED: https://www.thewebblinders.in/programming/article/rtsp-streaming-on-a-web-browser-6069
The next part of my project was to add buttons to the html page, that when pressed send a universal protocol command. I found that I needed to do this using IPC (inter-process communication) however I'm not really sure how to implement this to what I have now.
At the moment my system works simply as a html webpage that is served from /var/www/html using npx http-server --cors (from the open source server environment NODE.js)
I'm not really sure how I could implement a python or javascript back end that communicates to something like electron.js (I tried the latter method but had no success).
Would it be a separate program that acts as a server that hosts the html page instead of Node.js? Would I still keep my templates and methods in the LAMP src directory (/var/www/html)?
Any advice on the possible direction I could look at would be a lot of help. I've not found much online that discusses IPC work on html templates served by node.js. The only html related topic I've seen relating to it is JavaScript with electron.js and that changes the way my webserver is ran.
Thanks for taking the time.

Content is not shown at angular.js web application while Hosting

I'm new at this,
I built an angular.js app and now I want to host it,
I tried both on google drive or firebase but in both cases the html
is shown, but the information that loads on angular dosen't show..
Do I Have to develop a server side on node.js?
What can I do?
Thanks.
Yes, you need a http server to host your angular.js app, since angular.js need dynamically load the js file but it is not allowed to access the js file on file system directly. Suggest using this http-server to host. It's very convenient. Or simply copy your angular.js code to IIS or Nginx, Apache, Tomcat, etc ...

How can I use Javascript to perform background updates of a Phonegap application?

I am using PhoneGap to develop an application for Android and iOS, and recently in a discussion about this technology, someone told me a seemingly brilliant idea that I can do background updates of my application without having to submit a new application to the app store.
The problem is that, being that I am still fairly new to the HTML5/CSS and Javascript world, I cannot figure out how to download files to my www directory for permanent storage. I can dynamically load JS code or HTML pages at runtime, but I want to create some javascript module that will find that a certain .css, .html, or .js file is out of date, download the new version of that file from some http or file server to the www directory, and then have that new file permanently saved so that it is available the next time the app is opened.
I feel like this should be simple, but I can't figure out how to do it. Thanks in advance.
In order to permanently save files to the devices you will need to make use of the PhoneGap File APIs. Periodic tasks can be achieved with a simple Javascript timer.

Tomcat in Eclipse: Edit Javascript without redeploying

I am working on a Java application (which runs on Tomcat) using Eclipse WTP. For development I have configured my tomcat server in Eclipse and use the "auto publish" feature.
This works for .java files (compiled files are getting published).
Its also fine for working in jsp. In this case my edited jsp file is just copied to the server directory without redeploying my application.
However it does not work with javascript files. Everytime i change a .js file my application is redeployed and i have to wait a few seconds.
Is there any tomcat option i am missing?
Thanks
Doubleclick your server in the servers view, click on the tab modules at the lower bound of the servers property window, select your web module from the list, click the edit button, uncheck "auto reloading enabled", click ok, save your settings and restart the server.

Categories