Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I am just planning architecture for my web app and I just wanted to ask you, if it is good idea to use Firebase auth with Angular and mongoDB as a database. (I don't want to use Firestore realtime database)
Is a good idea to use queries directly from my Angular client or do I need some node.js/express backend for this? What would be the best solution?
Thanks for your advices.
In my opinion you should be fine with simply making calls from Angular, but if I were you I would build a Node/Express server API that will perform CRUD operations against firebase Auth and MongoDB. Then in your Angular app, you simply make API calls to your internal server API.
This architecture will ensure some sort of scalability and integration. If you wish to build an iOS or Android app in the future to supplement your web app, you already have your NodeJS server ready to go. No need to rebuild a separate backend just for your mobile apps. I use this concept in all my projects: web or mobile.
Hope it helps.
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 2 years ago.
Improve this question
I generally install mongo on an ec2 instance .
But i came across many other methods on hosting a mongodb server in aws.
I am looking to learn the most effective way to do this. Thanks in advance.
This is just an educational question.
My recommendation is to use the mongoatlas service, they have several plans but they carry out a full deployment of your database with automatic backups, metrics, access and permission management, availability, set replicas, autoscaling, etc...
Finally they also use amazon to host their databases and it is an official service of mongodb.
https://www.mongodb.com/cloud/atlas
The downside to using a simple amazon instance is to implement all of that and without a good backup procedure you could lose all your data if your instance dies.
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 want to build a website using only html, css and JavaScript. I have prior knowledge about these stuff. But I want to use Firebase to host the same. Is it possible to do so?
P.S. I don't want to use any JS Framework because I have no prior knowledge.
If answer is no, please do tell me in detail what all should I start learning to do the same.
Yes it is possible to use Firebase to host your website.
Firebase Hosting:
Firebase Hosting provides fast and secure static hosting for your web app.
Firebase Hosting is production-grade web content hosting for developers. With Hosting, you can quickly and easily deploy web apps and static content to a global content-delivery network (CDN) with a single command.
more info here: https://firebase.google.com/docs/hosting/
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 7 years ago.
Improve this question
How do I build a scalable activity stream or newsfeed using Meteor?
I'm building a music app with a newsfeed using Meteor. What are the best practices for building a scalable newsfeed using Meteor? I've looked at Mongo, Redis and Cassandra. Tips would be much appreciated.
So far I've found this blogpost which explains how to use Mongo (thank you google translate). (http://habrahabr.ru/company/dataart/blog/242593/)
Building scalable feed technology is quite complex. A lot of articles have been written about the underlying challenges. Did you see my tutorial about integrating Stream + Meteor? That's definitely the easiest way.
If you are interested in implementing a Meteor publications that combines documents from different Mongo Collections I recommend the following article. This will allow you to create a publication for a news/activity feed which intermingles activities stored in multiple Mongo Collections.
If you really want to implement the storage side of things yourself our open source Stream-Framework has a ton of interesting articles listed on the Github page. Here are some of my favourites:
Twitter 2013 Redis based, database fallback
Cassandra at Instagram
Facebook history
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 7 years ago.
Improve this question
I have one already developed Angular js application.Routing and templates are already done in that application.
Now my customer need it to integrate this application using Laravel for PHP integration.
Guys please guide me how I proceed.
If we can't able to integrate then kindly suggest any other PHP framework which is comfort for angular application.
Thanks in advance
AngularJS is javascript, it runs on user's browser, Laravel is php, it runs on your server. They communicate via HTTP requests and they are complelty independant one from another.
If you have to migrate your application from AngularJS to PHP, that means you have to write your application again, because they have different logic, approaches and way of working.
If you have to let your AngularJS communicate with a remote server, that is done via ajax requests and it doesn't matter what framework you use, since AngularJS will only look at the output produced from your server.
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 8 years ago.
Improve this question
I created a client-server web app using Java backend (JBoss RESTEasy, Jackson, MongoDB) and Javascript frontend (just jQuery and some plugins).
Now as I learning Javascript I want to create the same app using MEAN stack.
What should I start with? All necessary tools are installed (node.js, grunt, bower etc). MongoDB with needed data is ready.
Should I start with Mongoose model for my data? Or with Angular part?
I would suggest building bottom-up from the existing documents in MongoDB to the Mongoose models and doing a quick prototype to replicate a key performance scenario of your existing application. This will help with capacity planning, you'll have real application workloads and a foundation to add Angular on top of later.