O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting Started with Meteor.js JavaScript Framework

Book Description

Creating the most modern, dynamic, multi-user web applications quickly and easily is exactly what Meteor was designed for – and it’s all done in JavaScript. In this tutorial is everything you need to know to get started.

  • Create dynamic, multi-user web applications completely in JavaScript
  • Use best practice design patterns including MVC, templates, and data synchronization
  • Create simple, effective user authentication including Facebook and Twitter integration
  • Learn the time-saving techniques of Meteor to code powerful, lightning-fast web apps in minutes

In Detail

Meteor is a brand new platform built entirely in JavaScript that allows you to build modern, dynamic web applications in the blink of an eye. With support for nearly every popular JavaScript framework (and more being added every day), Meteor provides you with the ability to quickly and easily develop sophisticated and stylish web applications.

"Getting Started with Meteor" is an easy to follow, step-by-step approach to learning how to build modern web applications with Meteor. Through the development of a complete and ready-to-use application, you will experience exactly how easy and fast it can be to develop robust, flexible web applications, so you can build your own “killer” app in no time.

"Getting Started with Meteor" will walk you step-by-step through all the major advantages that Meteor has to offer. You’ll be up and running in less than two minutes, and will develop an actual application you can use. As you move quickly through the exercises, you’ll be able to experience first-hand how easy it is to develop in Meteor, and will gain invaluable best practices you can apply immediately to your coding projects.

You will learn about reactive programming and how Meteor takes advantage of the latest web technologies. You will gain a solid understanding of what the best design patterns are for developing web apps, and when to use them. You will learn how Meteor uses HTML templates and NoSQL (document-based) databases together to make coding applications simple and fun. Finally, you’ll gain best practices for security and performance, making your web applications fast, secure, and easy to use. If you want to build a web application but hate how difficult it seems to be, this book will show you the easy way to build and deploy modern web apps.

This book will teach you everything you need to know to get up and running with Meteor, and start you on your way to becoming an expert web applications developer.

Table of Contents

  1. Getting Started with Meteor.js JavaScript Framework
    1. Table of Contents
    2. Getting Started with Meteor.js JavaScript Framework
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Setup and Installation
      1. Installing with curl
      2. Loading an example application
        1. Selecting your file location
        2. Loading the example application
        3. Starting the example application
        4. Previewing the application
        5. Help! I made too many changes!
      3. Making code changes
        1. Changing from todos to items
      4. Summary
    9. 2. Reactive Programming… It's Alive!
      1. Creating the Lending Library
        1. Creating the base application
        2. Creating a collection
        3. Fun with the browser console
        4. Adding some data
        5. Displaying collections in HTML
        6. Cleaning up
      2. Creating a reaction
      3. Multiple clients
      4. Summary
    10. 3. Why Meteor Rocks!
      1. Modern web applications
        1. The origin of the web app (client/server)
        2. The rise of the machines (MVC)
        3. The browser grows up (MVVM)
      2. A giant Meteor appears!
        1. Cached and synchronized data (the model)
        2. Templated HTML (the view)
        3. Meteor's client code (the View-Model)
      3. Let's create some templates
      4. Summary
    11. 4. Templates
      1. A new HTML template
      2. Gluing it all together
        1. Our items View-Model
        2. Additional view states
        3. Adding events
        4. Model updates
        5. Style updates
      3. Summary
    12. 5. Data, Meteor Style!
      1. Document-oriented storage
        1. But why not use a relational database
        2. MongoDB
        3. Using direct commands
      2. Broadcasting changes
        1. Published events
      3. Configuring publishers
        1. Turning off autopublish
        2. Listing categories
        3. Listing items
        4. Checking your streamlined data
      4. Summary
    13. 6. Application and Folder Structure
      1. Client and server folders
        1. Public folder
      2. Security and accounts
        1. Removing insecure
        2. Adding an admin account
        3. Granting admin permissions
      3. Customizing results
        1. Modifying Meteor.publish()
        2. Adding owner privileges
        3. Enabling multiple users
      4. Summary
    14. 7. Packaging and Deploying
      1. Third-party packages
        1. Listing available packages
      2. Bundling your application
      3. Deploying to Meteor's servers
        1. Updating Meteor's servers
        2. Using your own hostname
      4. Deploying to a custom server
        1. Server setup
        2. Deploying your bundle
          1. Optional – different platform
        3. Running your application
      5. Summary
    15. Index