Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

Node, Express, Backbone and Marionette -- Sorting Out the Pieces

Express with Node

  • Express is a framework that takes Node from a barebones application and turns it into something that behaves more like the web servers we’re all used to working with.
  • Express feels like the sinatra of node.

Bower vs. npm

  • It was advised that bower is the front end dependencies package manager, where the npm is for the backend. see
  • You specify what dir your want to install the bower packages with a .bowerrc file which goes in the project root. Here are some examples of these types of files.
    • This tutorial was helpful to get up and running with require.js and bower

Mean stack

Asynchronous Module Definition

  • The AMD format comes from wanting a module format that was better than today’s “write a bunch of script tags with implicit dependencies that you have to manually order” and something that was easy to use directly in the browser. further reading
  • The standard loader is RequireJS, but in production you could use a replacement AMD loader called Almond. It is a smaller “shim” loader, providing the minimal AMD API footprint that includes loader plugin support. Some developers like to use the AMD API to code modular JavaScript, but after doing an optimized build, they do not want to include a full AMD loader like RequireJS, since they do not need all that functionality. Some use cases, like mobile, are very sensitive to file sizes. By including almond in the built file, there is no need for RequireJS. almond is around 1 kilobyte when minified with Closure Compiler and gzipped.

Comments