How do I set-up Rest API to the Mongodb installation on my Mac Pro - mongodb

I'm developing a Google Apps Script application and I want to have a MongoDB backend to the application. Currently I am using a Mongolab sandbox account and successfully interacting with the collection on the Mongolabs servers. The performance is very good and the support at Mongolabs has been excellent.
That said, long-term I've decided to host my own Mongodb on my Mac Pro that is currently running Yosemite. I already have Mongodb installed and its working fine.
My Question: How do I use (install/configure/establish) a Rest API (or other means) to connect with my locally installed Mongodb database. I have spent a couple hours on 10gen's site and on Google trying to figure it out, but I have not quite gotten there. Does anyone have experience doing this or something similar that might be able to share your experience or at least refer me to a good resource.
Thanks in advance for you help.

Related

Is there a way to host an app that uses MongoDB Atlas on Heroku without paying for an addon?

I am in the process of teaching myself deployment to Heroku, and trying to host a simple MERN stack application to Heroku. So far, every tutorial I've worked on (at least four so far) has told me to use the addon mLab, which is 1) being depricated and 2) currently requires payment.
I've also now tried to use object Rocket which also requires a monthly payment. Is it possible to connect my Heroku app to MongoDB without payment? Perhaps without an add-on? I'm looking to turn around and teach others how to deploy their applications to Heroku, but if there is payment involved, that would be a real issue.
Edit: just to clarify, I am aware that MongoDB atlas is free, but what I'm not aware of, is way to connect Atlas to my Heroku app in a way that is free.
Use the Atlas free tier. No addons are needed.
To connect to your MongoDB Atlas db is best achieved using Mongoose - a node module - at least that is what I am doing with my recently created React/Atlas application. Mongoose is available for Angular as well and makes working with Atlas very easy. A google search will provide many tutorials, I'm sure.

How to connect Swift to a postgresql database hosted on Google Cloud

I'm new to working with back-end, but have been running into issues trying to get my iOS app to connect to my PostgreSQL DB.
I have developed an app with Swift which is a game that I want to run locally on iOS devices. I have a PostgreSQL DB set up in Google Cloud Platform but I cannot figure out how to get the Swift app to connect to my PostgreSQL DB.
I've read some about using Vapor or Perfect to run the application using Googles App Engine but I'm not sure that is what I want to do since I want the app to run locally but there are a few aspects of my app that I need a global database for.
Would anyone be able to point me in the right direction of how I need to connect my Swift application with Google Cloud's PostgreSQL?
Your question is pretty much very similar to this one.
In short, the correct answer is you shouldn't connect your client side application directly to the database. Instead, you should build a service that can connect to the database, and act as a service between your application. This helps prevent any unauthorized queries to your database and provides better performance. If you wanted to do this on GCP, you could look into something like Google Cloud Functions or Google Cloud App Engine to act as a service.
An alternative would be to use a "Database-as-a-Service" like Cloud Firestore. This is a scalable, pay-as-you-go service with great mobile support.
Yeah sure you need a server, ruby on rails to connect to your Postgres database.
The server will facilitate data back and forth from the Google cloud Postgressql

Yesod Persona authentication problems when using Dockerized MongoDB

We are developing an application using Yesod and MongoDB and we are having users authenticate using Mozilla Persona. However we have a development database that we use across development machines and also on our staging machine. Anytime development or testing data is added or removed from staging we synchronize it with the development machines using Docker. Here is the problem: even though our databases are exactly the same (thanks to Docker) we are encountering a situation in which we are able to log into the application on staging but not on the development machines. Basically Yesod refuses to log the application. Any ideas as to why is this happening? Thank you in advance.

Deploying Meteor App to own server

I have a completed meteor project and is currently deployed on the meteor website. I would like to move it to my own website, which is currently hosted by GoDaddy.
How do I install Node and Mongo on my server (linux) and then run my meteor project? I received ssh access to my server, so I assume I can do this, but I'm just not sure how.
So how exactly do I proceed?
Additional Info:
I'm not exactly sure what of linux it is. On GoDaddy, it simply says linux.
When I ssh, it shows me:
-bash-3.2$:
Also, I having my website simply show the myapp.meteor.com webpage would work too. An explanation on how to do this would work.
Discover Meteor has a chapter on deployment which helps to answer this question. For ubuntu-based servers they recommend meteor-up. I haven't used it, but it's probably worth checking out. Previous versions of the book recommended meteoric.
I wrote my own set of bash scripts using a few ideas from meteoric, but I already had a lot of experience doing deployment scripting. Frankly there's nothing quite like figuring it all out yourself, but doing sysadmin tasks doesn't appeal to everyone and it can be hard to pick up in a hurry.

Rails 3.0.0 and FASTCGI Deployment Question

I currently have hostingrails.com. But following their tutorial on deploying rails application with FASTCGI is not quite working... So currently I'm hosting one of my apps with them using Thin.
Currently, my host says FASTCGI and Rails3 is not supported is this true?
Besides running mongrel,thin or passenger. What other options do I have with my host? They are telling me to develop in 2.3.8 if I want to use fastcgi, but I'm trying to move away from 2.3.8 and to rails 3.0.0.
Anyone have a better shared host? Basically what I am looking for is a shared host allowing me to host multiple rails 3.0.0 applications. I'm not expecting alot of usage but I'm looking to build like a portfolio of applications that I've made and would like them hosted on.
And with hosting rails i'm spending $7/month. I'm looking for something in this ball park or maybe a few more dollars. Thanks for your help.
I would recommend dreamhost. it is hands down the best shared host I have tried over the years, and they do support rails.
Not rails 3 though. I got it working using this http://blog.joeygeiger.com/2010/05/17/i-beat-dreamhost-how-to-really-get-rails-3-bundler-and-dreamhost-working/
Finally, there are things that you just can't do on a shared host. Keep in mind you can get a pretty decent vps (like linode 512) for 20$/mo