-
Book Overview & Buying
-
Table Of Contents
Mastering JavaScript Single Page Application Development
By :
We began this chapter by setting up Passport strategies for authenticating with Facebook and Twitter. Setting up developer accounts with each social media site is a straightforward, but necessary, step.
We then utilized our Mongoose Giftlist model, as well as our resourceful controller, to enable creating gift lists from within the SPA. We enabled the frontend code and AJAX functionality by building a new AngularJS controller. To be able to post data to the backend, we added an injectable value service to carry the CSRF token.
There are a few things we leave to you to round out the application. This includes a way to add more gift inputs dynamically, and share lists with other registered users.