Monday, July 08, 2013

JavaScript replaceAll Example

I needed a JavaScript "replaceAll" function on a string. Note the global flag /g The output is:
John.Jacob.Jingleheimer.Smith
John Jacob Jingleheimer Smith

Thursday, July 04, 2013

Example of Meteor using Facebook's Login API

Earlier today I finished up the Meteor Login sample app using Github's API and decided to attempt the same with Facebook's LoginAPI. Meteor makes it so easy that I was able to replicate the same results in two hours. The reason that it even took that long was because I was not accessing the Meteor.user JSON correctly.

For the code go my github repo at: https://github.com/m2web/facebooklogin.

One thing to note is the setup of the Facebook Login App for testing at Meteor's default location of http://localhost:3000.



Of course, once you deploy the app, you will need to update the above settings to the correct domain and URL.


Enjoy!

Repo Integrating User Logins with Github and Meteor

Messing with Meteor, an ultra-simple environment for building modern web applications, has been fun thus far. Here is a repo based on Chris Mather's video Customizing Login.