Riding Rails with AngularJS
Riding Rails with AngularJS
Minimum price
Suggested price
Riding Rails with AngularJS

This book is 95% complete

Last updated on 2013-11-02

About the Book

We are selling this book along with the code at: http://www.fullstack.io/edu/angular/rails/. The book itself is available here on leanpub as well.

About the Author

Ari Lerner
Ari Lerner

Ari Lerner is a Founder of FullStack, a full-stack engineering and development shop that works with all parts of the stack. He enjoys all parts of the development ecosystem, from infrastructure deployment through to front-end application development and optimization. He co-manages defnewsletter.com and ng-newsletter.com. He lives in the sunny part of San Francisco.

Follow him on Github: @auser or Twitter: @auser

Table of Contents

  • Introduction
    • About the author
    • About this book
    • Organization of this book
    • Additional resources
    • Conventions used in this book
    • Development environment
  • Setting up our Rails app
    • Setting up our user model and authentication
    • Setting up our sharing model
    • Setting up a test harness for our Rails app
    • Testing WelcomeController
    • Building the session API
  • Angular in the Rails asset pipeline
    • Preparing to integrate the app
    • Fetching articles
    • Building the ShareService
    • Interacting with the session API
    • Building the share API
    • Client-side validation
    • Creating a directive
  • Angular using Rails as an API
    • Using the almighty Yeoman
    • Configuring Yeoman proxy
    • Developing the app
    • Developing Shareup
    • Securing the app (as much as possible)
    • CORS-based auth in the Rails app
    • Authentication
    • Implementing front-end signup
    • Implementing back-end login
    • Implementing front-end login
    • Making an authenticated API call
    • Getting current user data
    • Using $resource
    • Deploying the app
    • Conclusion

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub