Putting It All Together

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

Brian W. Kernighan

In this chapter, we’ll cover:

  • Adding CORS for Different Domain Deployment
  • Message Board UI
  • Message Board API
  • Deployment to Heroku
  • Same Domain Deployment Server
  • Deployment to Amazon Web Services

Now, it would be good if we could put our front-end and back-end applications so they could work together. There are a few ways to do it:

  • Different domains (Heroku apps) for front-end and back-end apps: make sure there are ...

Get Full Stack JavaScript: Learn Backbone.js, Node.js and MongoDB, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.