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 have an NodeJS application that runs on localhost and I want to share it with another person.
But I don't want to reveal my code. So how do I give it as an application rather than the code itself.
I need to make my application a binary file.One click run app.
There are modules out there which help in converting node application to binary(exe) .
Some are
EncloseJS, pkg
You can do that by using Ngrok after install it and run it; you can give access to your application URL and PORT for example http://localhost:3000 and then ngrok will give you a URL to access it from outside.
Related
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 3 years ago.
Improve this question
I'm working on a project with react native, express and MongoDB.
When I click the submit button, I want my string to be passed to server.js where I can implement my get-request. Basically, I'm unable to create communication between react-native-js file and node-js file. I'm using react-native-router-flux for navigation.
Procedure One : you need to develop the backend using node+express
the backend should expose the api endpoints like this ->
http://serverRunningurl/auth/usersignin
Procedure Two : you need to access those endpoints via your react-native side..
lots of client side http libraries out there , use axios,
Try this reference first : The MERN Stack Tutorial
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 4 years ago.
Improve this question
i just finish my first website using react and I gonna put in my server(hostgator), how can I build it?? thanks
if your project just front end code which just JavaScript, html, css. Not backend needed, you can simply put your build folder(npm run build) in your web hosting. Or simplest way to make your website available by using GitHub pages https://pages.github.com/
Did you create it with CRA? In this case just run npm run build and put in your server build folder by default.
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 was just wondering if it's possible to host a VPN server using node js? This will make it very easy to create restrictions for the connection or block certain websites for example...
I can't find an npm package for hosting a vpn server. Any suggestions?
One of the solutions that I would suggest is:
To install openvpn. And to use and node client to interact with the openvpn server
Npm package https://github.com/luigiplr/node-openvpn
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 creating an aplication with Electron + React. The app has to allow users to save files on the server (something like Google Drive).
Now, im building the server side with express but i dont now how to send files to the client. How could i do it?
Would it be nice to use an FTP server instead of node?
Thanks.
Well there are 2 options regardless:
1) You just send your app unique link of the file witch expires after some time.
2) You stream the file to electron directly(Just google node streaming.
Thats about it.
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 6 years ago.
Improve this question
I have an API in my app, how can I call the API in a JS script when I don't have a URL and I'm still in development?
Do not specify the domain name as part of the API's URL and deploy the JavaScript application to the same domain/port as the PHP API. You may have to do this anyway for security reasons (look up CORS).
So, if you call your API endpoint at /api/endpoint from your application deployed at /app, you will be independent of the domain, no matter if you are working locally
http://localhost:8080/app
http://localhost:8080/api/endpoint
, or in production
https://example.com/app
https://example.com/api/endpoint