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 - Second Edition

Book Description

Learn to develop powerful web applications in minutes with Meteor

  • Learn one of the most up-to-date JavaScript platforms, with easy to follow, step-by-step instructions
  • Familiarize yourself with Meteor's new and improved features
  • Create dynamic, multi-user applications in JavaScript

In Detail

Meteor is one of the most popular development platforms available today, allowing you to create and deploy mobile and web applications in a fraction of the time needed by other JavaScript frameworks. Getting Started with Meteor.js JavaScript Framework Second Edition is an easy to follow, step-by-step approach to learning how to build modern web applications with Meteor.

You will begin with a look "under the hood" to see what makes Meteor so special. Next, you will build a complete, working application from scratch, gaining a thorough understanding of Meteor's major features including: data on the wire, web templates, declarative programming, full-stack reactivity, modularity, third-party packages, and MongoDB/NoSQL databases. Finally, you will learn how to harden your app, prepare it for production release, and quickly deploy it using Meteor's public servers or your own custom server. With updated screenshots and code, this second edition will show you exactly why Meteor is the choice for rapid, elegant application development.

What You Will Learn

  • Leverage reactive programming in modern web applications
  • Design and implement MongoDB/NoSQL databases
  • Develop fast and simple web interfaces with HTML templates
  • Use local and server synchronization to make apps more user-friendly
  • Structure an application for performance and security
  • Leverage Meteor's quick and easy user authentication system
  • Implement third-party packages and add-ons
  • Prepare and deploy Meteor applications

Table of Contents

  1. Getting Started with Meteor.js JavaScript Framework Second Edition
    1. Table of Contents
    2. Getting Started with Meteor.js JavaScript Framework Second Edition
    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 using curl
      2. Loading an example application
        1. Selecting your file's 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 Leaderboard to Yay Science!
      4. Summary
    9. 2. Reactive Programming…It's Alive!
      1. Creating the Lending Library
        1. Creating the base application
        2. Creating a Collection
        3. Having 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
      2. A giant Meteor appears!
        1. Data On The Wire
        2. Latency Compensation
        3. Full Stack Reactivity
      3. Let's create some templates
      4. Summary
    11. 4. Templates
      1. A new HTML template
      2. Gluing it all together
        1. Displaying items
        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. Why not use a relational database?
        2. MongoDB
        3. Using direct commands
      2. Broadcasting changes
      3. Configuring publishers
        1. Turning off autopublish
        2. Listing Categories
        3. Listing items
        4. Checking your streamlined data
      4. Summary
    13. 6. Application Structure – Client, Server, and Public (oh my!)
      1. The client and server folders
        1. The public folder
      2. The 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. Finding the available packages
      2. Bundling your application
      3. Deploying your application to Meteor's servers
        1. Updating Meteor's servers
        2. Using your own hostname
      4. Deploying your application to a custom server
        1. The server setup
        2. Installing and configuring MUP
        3. Deploying your app using MUP
      5. Summary
    15. Index