CHAPTER 8

image

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.