Rails, Angular, Postgres, and Bootstrap: Powerful, Effective, and Efficient Full-Stack Web Development
- Length: 240 pages
- Edition: 1
- Language: English
- Publisher: Pragmatic Bookshelf
- Publication Date: 2016-02-05
- ISBN-10: 1680501267
- ISBN-13: 9781680501261
- Sales Rank: #371826 (See Top 100 Books)
As a Rails developer, you care about user experience and performance, but you also want simple and maintainable code. Achieve all that by embracing the full stack of web development, from styling with Bootstrap, building an interactive user interface with AngularJS, to storing data quickly and reliably in PostgreSQL. Take a holistic view of full-stack development to create usable, high-performing applications, and learn to use these technologies effectively in a Ruby on Rails environment.
Rails is a great tool for building web applications, but it’s not the best at everything. Embrace the features built into your database. Learn how to use front-end frameworks. Seize the power of the application stack through AngularJS, Bootstrap, and PostgreSQL. When used together, these powerful and easy-to-use tools will open you to a new world of possibilities. In each chapter of this book, you’ll learn how these technologies can work together inside a Rails app to deliver well-performing applications that offer great user experiences.
Create a usable and attractive login form using Bootstrap’s styles, while ensuring the database table backing it is secure, using Postgres’ check constraints. You’ll see how creating an advanced Postgres index for a case-insensitive search can speed up your back-end–allowing you to create a highly dynamic user experience using AngularJS. You’ll create complex interfaces using Bootstrap’s grid, together with Angular’s form support, backed by a materialized view for caching within Postgres. You’ll get your front-end working with the Asset Pipeline, use Postgres’ features from migrations, and write unit tests for all of it. All of this within Rails.
You’ll gain the confidence to work at every level of the application stack, bringing the right solution to every problem.
What You Need:
You’ll need Postgres 9.4, Rails 4.2, and Ruby 2.2. You’ll learn how to install Postgres on your computer or use a free version of it in the cloud. You should have some experience with basic Rails concepts and a cursory understanding of JavaScript, CSS, and SQL, but by no means need to be an expert.
Table of Contents
Chapter 1. Create a Great-Looking Login with Bootstrap and Devise
Chapter 2. Secure the Login Database with Postgres Constraints
Chapter 3. Use Fast Queries with Advanced Postgres Indexes
Chapter 4. Create Clean Search Results with Bootstrap Components
Chapter 5. Build a Dynamic UI with AngularJS
Chapter 6. Test This Fancy New Code
Chapter 7. Create a Single-Page App Using Angular’s Router
Chapter 8. Design Great UIs with Bootstrap’s Grid and Components
Chapter 9. Cache Complex Queries Using Materialized Views
Chapter 10. Asynchronously Load Data from Many Sources
Chapter 11. Wrangle Forms and Validations with Angular
Chapter 12. Dig Deeper