Fetch local ressource from distant server [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Let me explain the situation :
I have a local application that generate a local server (localhost with port) where I can have informations. I also have a distant VPS with a web application running on it. And my goal is to get informations from the local server to use them in my web application.
Any ideas how to do that ? I precise that I can't modify the local server/application because it's not mine.

ngrok is made exactly for that: exposing local servers to the public internet. Let's say your server is running on http://localhost:3000. You can run ngrok http 3000 and your server will also be accessible at an address like (http|https)://1234abcd.ngrok.io.
Ngrok has a free plan that is really free and subscriptionless that is pretty powerful, allowing 8hr/day and 60 requests/mn (if I remember correctly), so it's pretty awesome for advanced web application prototyping.
You can then upgrade to a paid plan, but at this point you'd rather host your local server on the internet instead. Then I'd recommend Digital Ocean for its simplicity and extensive dev doc.

Related

Is the Cache Storage in a PWA secure? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am building a PWA and I have got restrictions that cached data have to be secure in some way, so I was wondering where the Cache API stores the data.
Since this feature is only available in Secure Contexts (HTTPS), we are protected against man in the middle attacks.
My main concern is that the cache could be accessible by other domains or through the users filesystem, where i suppose the data is stored. Sadly there is no documentation about this.
To provide more insight into my application:
PWA running on a nginx
.NET Backend running on the same domain and is accessible by appending "/api"
I am aware that I can navigate to the Cache Storage in the Chrome Dev Tools for example, but I do not know where they are stored, and whether they are encrypted or not.
Thanks in advance

Running Node on windows [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I develop a Node server app. as I develop, I test it with 'run npm' command, which launches the server, then I test it from Chrome and\or Postman.
Now I wish to roll this app (it's a REST service) out to production server. Ours is a Windows server, so how is it usually done? I mean Node is its own server, so is it normal to copy the files over to a directory on the server and set an 'rpm run' to execute there on server start, or do people then typically use IIS as the server? Is something like IISNode a popular way to do things these days...?
If you want my opinion, I myself always run my node projects in somewhere out of windows platform, like containerized or Linux-based production environments.
But you can use nssm.exe to make a windows service with failure recovery and auto startup features from your node project as easy as you want. I can clarify more if you want.
Just visit this article

How to get HTTPS SSL certificate When you use only Front-end [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
how can I get the SSL certificate (HTTPS in URL bar) when I use only HTML, CSS, JS.
Not any backend / SQL language is used.
Domain bought from GoDaddy, storaged in AWS servers.
Thank you very much !
** Addition Question : Can I see the https when I code in my computer ? I mean in the localhost.
You have 3 options to setup SSL certificate for your domain:
By one from DNS service provider (e.g Godaddy).
use certbot utility on the server.
install and use Caddy server.
Note: SSL is not related to the programming language used, its more of how clients(browsers) communicate with web server (web apps/sites). and yes you can use it locally on your machine.

How can I host a create a simple login portal that can be accessed by different users over a same local network? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm planning to make an Instagram for web for my school project, but i don't know how to give access to a page from the server to multiple users. Make note that all these things are happening offline and the webpage will be accessed to all those users who are connected to my local hotspot (or the computer hotspot on which I'm going to host the server).I don't know a thing about how to connect two users. please help.
Thanks
this steps are for XAMPP over the same local network:
Get your internal IP or static ip (ipv4, example: 192.168.1.106).
Open XAMPP>apache>conf>httpd.conf file
Find the line #Listen 12.34.56.78:80 or #Listen 0.0.0.0:80
Change the IP address in that line and replace it with the static IP (192.168.1.106)
Save the httpd.conf file ensuring that the server is pointed to #Listen
192.168.1.106:80
to connect from another pc just write http://192.168.1.106/myapp
hope it helps.

Javascript client side ssh / ping / scp [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to build a web app that has the capability to scp, ssh, and ping devices on the local network from Javascript client-side. I'm very familiar with Django, but that's all server side code and won't be able to communicate with a device on the local area network.
Is there any way to do this in Javascript? I know that packages like scp2 in NodeJS do exactly what I want, but NodeJS is a server-side framework too. I'm looking for something that does what scp2 does, but client-side.
There is no browser-independent way to do this. You would have to write browser-specific extensions to be able to get access to TCP sockets and the like. Even then if you browserify ssh2 or any of its dependents, you may run into other issues, such as missing node.js functionality not supported by browserify or the browser's extension API.
Alternatively, you could use something like Electron, but that's only if you don't mind the client being a separate application (but still web/JavaScript-based). That would also have the added benefit of having the ssh2 or related code being completely compatible (since Electron uses node.js).

Categories

Resources