Tag Archives: BackboneJS

Part 2: Creating RESTful APIs With NodeJS and MongoDB Tutorial


via Creating RESTful APIs With NodeJS and MongoDB Tutorial (Part II) – Adrian Mejia’s Blog.

Welcome to this RESTful API using Node.js (Express.js) and MongoDB (mongoose) tutorial. You can follow alone to make a stand alone API endpoint, or you could also check out our AngularJS or BackboneJS tutorials to build a javascript-client that connects with the endpoint we are going to built.

SEO for single page apps


via SEO for single page apps – backbone.js tutorials – cdnjs.com.

This tutorial will show you how to index your application on search engines. As the author I believe that servers should be completely independent of the client in the age of API’s. Which speeds up development for the ever increasing array of clients. It is on the shoulders of the search engines to conform and they should not dictate how the web is stored and accessed.

Using GMap in RequireJS, with Backbone


via rockylhc.com | Using GMap in RequireJS, with Backbone.

As a web developer, I have been doing a lot of websites that rely on javascript heavily. And most of the time, I just build the website with only one javascript, with plenty of jquery plugin, to get the job done. Then, it ends up with a massive chunk of javascript when the project getting bigger and bigger, which is a big mess.

Until lately, I thought about using a framework, an architectural design pattern to help me to tidy up my scripts. So here’s my first step, try to collaborate some of the rising, new, and useful javascript tools, to create a map based web app. And the tools that’s in my scope are:

So the starting is quite easy, just insert

Understanding Redux Middleware


via Understanding Redux Middleware — Medium.

I have been using Facebook’s React since v0.9.x in Feb 2014. I am a defector from Backbone.js which initially started after replacing our view layer with React. After understanding the benefits of Flux and it’s unidirectional flow architecture it became pretty evident that I did not need Backbone.js models and collections anymore. I will assume you have some basic knowledge of Flux, Redux, React, and functional programming. I will cover as much as I can in this article.

Understanding Redux Middleware


via Understanding Redux Middleware — Medium.

I have been using Facebook’s React since v0.9.x in Feb 2014. I am a defector from Backbone.js which initially started after replacing our view layer with React. After understanding the benefits of Flux and it’s unidirectional flow architecture it became pretty evident that I did not need Backbone.js models and collections anymore. I will assume you have some basic knowledge of Flux, Redux, React, and functional programming. I will cover as much as I can in this article.

Understanding BackboneJS from the lens of a Java programmer


via Ankur Kumar’s Blog – Pragmatic Best Practices for Digital Architecture: Understanding Backbone.js from the lens of a Java programmer.

Let me start this blog in favor of backend or server-side programmers by making the following statement:

“A server-side programmer (Java or similar) can understand nuances of javascript client or server-side frameworks or libraries much more quickly than an html developer”. 

Integrating Test.Check and Javascript


via Integrating Test.Check and Javascript – Ashton Kemerling.

I was recently on The Cognicast with Craig Andera where we discussed using Generative Testing on a large non-Clojure(script) codebase, in particular Ruby on Rails and Backbonejs. If you haven’t listened to the show yet I highly recommend it first.

As I promised on the show, I’d like to share how we used Test.Check to test our Backbone.js code base. Our overall strategy for testing Javascript is going to be:

  1. Compile JS into one file (just like prod).
  2. Compile tests into a single file.
  3. Combine them in a PhantomJS process.
  4. Let the tests do their thing.

While we have been super pleased with the results of Generative Testing, there have been some hurdles for getting it to work for us. In this post I’m going to go over how to setup Test.Check to work with your Javascript app, and how to dodge all the pitfalls I found.

Here are the challenges that lie between us and Generative Testing bliss.

  1. Picking the right library
  2. Setting up Leiningen & Cljsbuild
  3. Dodge PhantomJS issues
  4. Avoid mangling your app, and defeating dueling dependencies