I am newbie in web development. And I am working on ember with firebase using emberfire.
As I found that I can deploy the ember project to Firebase hosting, do firebase hosting support asset hosting only? And I have to host my ember web project in another hosting?
Thanks a lot.
From the Firebase Hosting documentation:
Firebase Hosting provides fast and secure static hosting for your web app.
Embjer.js is a front-end only framework. Web applications built using Ember.js can be run on Firebase Hosting.
Give it a try and report back if you have a specific problem.
Ember requires NodeJS (npm) installed on your hosting to work. Firebase Hosting doesn't have anything like that.
Point of correction: Ember.js is a front-end tool like AngularJS, therefore you can use it with Firebase, which supports only static files hosting.
Firebase Hosting only stores assets (css, js and images files) and doesn't have any form of installing serverside packages.
fast forward to 2019, firebase now offers functions where you can write dynamic code for your static app. It uses node (express.js).
https://firebase.google.com/docs/functions/use-cases
Related
I have made a web app using express and react, and I want to bundle it into a desktop application, is this possible using electron?
I recommend the tutorial at: https://www.electronforge.io/guides/framework-integration/react
This isn't too hard actually, you can find all instructions you need in https://www.electronforge.io/
To accomplish this, either your app keeps hosting it with express locally and electrons connects to localhost, or even better, do it by not hosting any servers and just keeping your JSX and html files in your project.
If you're using TypeScript and ES6, also consider taking a look here for some examples: https://www.electronforge.io/templates/typescript-+-webpack-template
So i would like to have a react-native app and use all the cool features from firebase. Since I'm fairly new to firebase though, I'm curious if and how I could possibly install a nodejs environment -which should be hosted by firebase- to add some Api features. Thanks in advance
Firebase itself will not execute your Node.js code, but it has integrations with Cloud Functions and Cloud Run, which can be used precisely for that.
I recommend having a look at the documentation, specifically the pages on serving dynamic content and host microservices using Firebase Hosting.
I've been using Firebase for a while but I realized this didn't work with an ejs file. If I have only one file which is an ejs file to host on an ACTUAL webpage, would DigitalOcean work with ejs?
It really depends on how you're trying to use EJS files.
Firebase Hosting is a static file host, which means that Firebase's servers don't do anything with the contents of your files. If you're trying to serve EJS files, so that they're rendered in the browser, then Firebase Hosting alone is already fine.
If you want the EJS to be rendered on the server, then that is not possible with just Firebase Hosting. But you can integrate Firebase Hosting with Cloud Functions or Cloud Run, which are essentially managed Node.js environments. And in that case you could run the EJS in Cloud Functions, which is hosted in Firebase Hosting.
For more on this, I highly recommend checking out the Firebase documentation on use-cases for hosting.
Note that all of these are probably also quite possible on Digital Ocean. Since you'd be using a VM there, you can essentially do whatever you want. The trade-off is that you'd lose the auto-scaling that Firebase offers there.
There is no reason to Firebase not work with EJS or even DigitalOcean. If you are integrating Firebase in front-end your problem is not back-end related.
digital ocean works for firebase if you using the front and for that
I am building some React apps and am starting to think about the process of hosting. I am currently with Media Temple, which is a Apache based hosting, and I am on their (gs) grid server plan, which from what I can tell doesn't support installing Node.
I just wondered, do React apps need Node on the server?
If they do, what could my alternatives hosting options be?
Many thanks :)
If you're doing universal rendering, you'll probably need a Node server to support this.
But if it's only a static one-page application, you could perfectly not install Node on your hosting environment.
Using webpack for example, you can create a single js bundle of your vendors and sources files, a css one, and an index.html, Leaving you with 3 static files.
No, react apps doesn't require node server
i have developed a simple webapp using socket.io and node.js and was wondering how i would deploy it to a server? My application uses an HTML file with a canvas element the user interacts with how would i deploy this, the css and the js files and the app.js file to the server?
thanks
In some hosting companies that support Node.js (like Nodejitsu and Heroku) you can deploy your static files as part of your application code. In other words, when you deploy your app both your code and static files (JS/CSS/Images) will be deployed.
The downside with this approach is that you cannot easily just change a CSS file like you can in a more traditional deployment where you can just FTP a new CSS file to the production server. You could bypass this if you host your CSS files somewhere else, though.
I don't have experience with AppFog but I suspect the same is true.
You have a 90 day free trial at Azure. Believe it or not but they have great support for node.js. Read more at http://www.windowsazure.com/en-us/develop/nodejs/