Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Preface

Acknowledgments

About this Book

About the Authors

About the Cover Illustration

Chapter 1. Getting started

1.1. What is Sails?

1.2. What can you build with Sails?

1.3. Why Sails?

1.4. Fundamental concepts of a web application

1.4.1. Requests and responses

1.4.2. HTTP methods

1.4.3. Routing

1.4.4. Performing actions

1.5. Understanding databases

1.5.1. What’s in a Sails model?

1.5.2. Sails model methods

1.6. Putting it all together in a backend API

1.6.1. Other types of routes

1.7. Our backend design philosophy

1.7.1. Starting with just the frontend code

1.7.2. Prototyping with blueprints

1.7.3. Finalizing your API

1.8. Delivering frontend assets

1.9. Frontend vs. backend validations

1.10. Realtime (WebSockets)

1.11. Asynchronous programming

1.12. Meet Chad

1.13. Summary

Chapter 2. First steps

2.1. Tools of the trade

2.1.1. Mac, Windows, and Linux ... oh my!

2.1.2. Choosing a text editor vs. an IDE

2.1.3. Must-have tools

2.1.4. Whoa, command line? Terminal? W-what?

2.1.5. Installing Node

2.1.6. Installing Sails

2.2. How code is organized in Node.js

2.2.1. What is a Node module?

2.2.2. Creating your first Sails application

2.2.3. Using a module from npm

2.2.4. Starting the Sails server

2.2.5. What is localhost:1337?