Debug/Develop Firebase remotely with vs-code or anything - javascript

I heard about Firebase Local Emulator Suite and this is really cool for developing and debugging.
Unfortunately, we can't use them for our real case and the reason next: we have dozens of integrations and making everything to work locally almost impossible or will take too much time. Currently we have to redeploy functions after every change (deploy takes us 5-6 minutes, because of related libraries)
I'm trying to find a different solution, here is what I have:
One of the ways to debug node process allows connecting via ssh Debug node process
In vs code we can connect to server and update files right there VS Code Remote Development
And the main question how to apply all mentioned earlier to Firebase project?
I'll appreciate any directions, examples, experiences, docs, or other ways to solve our problem.

Related

Is there any way to set up an rtfmp server on node.js?

I am currently recreating a server for an old multiplayers flash game, I have all the php parts of the server reasonably recreated in node.js but the game also used rtfmp to initiate p2p. Not using rtmfp is not an option, do not suggest it. The closest thing I have found is a node module called ArcusNode, and it looks like it would work fine if it didnt have missing modules that seem to be made in c++ that I cant compile no matter how hard I try.
Ive tried complaining arcus on my own pc and was given hundreds of errors in return, I tried compiling it on the server but it seems like it didnt get all the files, Ive looked everywhere for some sort of precompiled version and found nothing. I dont see any other real ways of running an rtmfp server that isnt downloading 10 (ten) malwares off of some random free download now site to get adobe media server 3.5 or some other software that promises the same thing. I dont even know where to begin.
I think ArcusNode is no longer maintained. We have built MonaServer which support RTMFP but how do you implement the client side? For Javascript you should create a new wrapper of a c++ library like librtmfp but it requires time to map the C++ functions to JS.
What about rewriting your code to use WebRTC which is supported by browsers and node.js? This is the new way to go for p2p over the web.

What's the best way to create a local server in order to use all the dependencies installed through NPM?

I've been struggling recently finding a fast and swift solution in order to create a local server and run my JavaScript project (with all the dependencies) in a browser. I've used WebPack in the past, despite is reliable and the local-server reflects immediately all the changes I make to the code, implementing it is cumbersome e requires a lot of time. Moreover creates a few compressed files that requires a bit to load. What are the alternatives or, more in general what it's used by developers to create projects and run it in a local server ? It's difficult once the project is complete to deploy it ?
I'm sorry if the question seem stupid, but I searched over and over, on YT, here on stack overflow, and I haven't found anything useful. I bet other junior devs stumped in a similar situation.

How to publish a Node.js Server online so that it is always accessible by an outside application

I have searched everywhere for a solution to this problem but for whatever reason I cannot find a clear answer as to how I can carry out this task.
I have built a very simple server with node.js that accesses two numbers from a website API and outputs them onto a localhost port on my computer as shown below:
My question is how can I take my server and make it accessible to applications without having to go into the command line and run the server file? Is there a way I can host it online instead of locally so that I can distribute the application and anyone with the application can pull from this server? What would be the best way to go about accomplishing this task?
Heroku is probably one of the easiest ways to get started with deploying the application: https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction
However, if you are not familiar with git, Microsoft Azure Webapps is also another great option: https://tryappservice.azure.com/
They both offer free plans which should get you up and running fast!
Question 1: how can I take my server and make it accessible to applications without having to go into the command line and run the server file?
To start a node server you will always need to use the console. If you are not used to,it's time to start :) .
You will be using it not only for node servers but for administrating (almost) every server in the world.
Question 2: Is there a way I can host it online instead of locally ?
There are a lot of nodejs hosting platforms, you can choose between PaaS solutions or IaaS solutions ( AWS EC2, Digital Ocean, etc.) . Probability the easiest way to start ar PaaS services, in this blogbost you will find a good list of PaaS hosting providers. Some of them have free plans.
Take a look at Heroku. They have a free tier (with limitations) and a hobby tier for $7/month.
I have implemented that with Amazon AWS, they offer free option for a limited time, but still great because you have full control on the console, you should be careful while installing the machine on cloud, you have many guides online that you can follow for steps, this one for example has step by step info, try to follow the steps and you will be able to run your app and access it from any public network.

Is it possible to run PHP/JavaScript on an Android server?

I've been tinkering to create an Android server now. Not an actual web server though; only one that would be accessible through WLAN connections to share files.
I've managed to build one using Apache HTTP libraries, thanks to this wonderful guide. However, now I wanna set up the game a lil' bit by running some scripts.
The question is, is it possible to do so?
I've tried googling for clues but that one above was the best I could find.

Does RhinoJS support the websockets API?

I have been using Jasmine to write BDD tests for a web app. I am interested in running these same tests from the command line using Rhino, and I found this blog entry which has been very helpful. However; my app uses pusher, which offers a simple API for passing events between clients using web sockets.
My tests run fine from a browser, but running them via Rhino fails to connect to pusher. Pusher offers a debug stream, and it would show authentication errors or other failures, but it doesn't register any activity when I run my tests from the command line.
This may be a simple yes or no answer, but I haven't been able to locate any relevant documentation, and I'm brand new to Rhino so I apologize if this is a total n00b question.
My question
As the title says, does anyone know if Rhino supports the websockets API? Am I doing something else wrong here, or will scripts that rely on websockets simply not work via Rhino?
My overall goal was to use my already written jasmine tests as stress tests by running them on several EC2 instances at once; is there a good (simple?) way to do this while reusing my existing javascript tests, or should I suck it up and just write my stress tests in a server side scripting language? I am aware of selenium grid, but was hoping to avoid having to spawn new browsers to run these tests, if possible.
Thanks so much!
Ringo, a Rhino-based CommonJS runtime supports them: http://ringojs.org/api/v0.6/ringo/webapp/websocket/

Categories