I have been intending to revisit Pocket Joe, in the near future. When I do so, I want to include my social media feeds. No matter how much I blog, I am always going to post to Twitter and Google+ more often. So, how do you include your public Google+ feed in your app?
Slightly over two months ago, I attended the 2014 HackMKE Civic Hackathon. I had attended one other hackathon in the past and I figured that it was time to attend another one. I tried to put together a Starkmedia team but the majority of my coworkers are “9 to 5 programmers” and had no interest.
I decided that I would show up by myself, without a plan for what I would create. I would simply dedicate myself to helping wherever I could. I ended up working on building an FAQ database, based upon a site called Honolulu Answers. The idea was that you could post questions about life in Milwaukee and people would offer answers.
In my first AngularJS post, I went through a very basic example of what Angular can do. We covered how to loop over an array. This time around, I would like to look at using ng-model to take input, how to create a basic Angular RSS reader (because that’s apparently “my thing“), and how to create modules.
If you open the ‘Configuration’ tool, you will find ‘enable_cors’ under ‘httpd’. You want to change that value to ‘true’.
Next, if you scroll down to the bottom of the page, you will find an ‘Add a new section’ link. You want to click on that and add an ‘origins’ option with the value of ‘*’ in the ‘cors’ section. You can set the ‘origins’ value to an actual URL but this will enable CORS for everybody.
I would like to give a ‘tip of the hat’ to RichITExperience for having this answer. It looks like nobody else had any good info about this.
So, you just created a CouchDB database, added a user to it, and want access to be limited to that user? There is a simple way of doing this. Let’s use a previous example, for this demo.
As you can see below, by default, you do not need to be authenticated, in order to interact with a database.
You can use the “Configuration” tool, on the right sidebar, to do that. If you look under “couch_httpd_auth”, there is a boolean called “require_valid_user”. By default, the value is “false”. You can change that to “true”.
Once the value is set to “true”, it will require you to do an http authentication for your requests.
This is definitely an unrefined, blunt way of securing your databases. It works, though.
If you are like me, you probably have not had much of a reason to use NoSQL but you have been interested in it. I recently decided to check out CouchDB. CouchDB is an Apache project that was created in 2005 by Damien Katz. CouchDB is interesting in that it stores your data with JSON documents and allows you to query via HTTP. This means that CouchDB provides it’s own web service.