Building Single-page Web Apps with Meteor

Book Description

Build real-time apps at lightning speed using the most powerful full-stack JavaScript framework

In Detail

Meteor is the best JavaScript platform on the Web that allows you to build real-time web applications quickly and easily and in pure JavaScript. It comes with a full build process that takes care of everything, from development to production, with no need for configuration. This book takes you from the installation of Meteor to building a fully working web blog (including backend) to create and edit posts.

You will start with the basic concepts and folder structure of a Meteor project, learning how Meteor templates work. Learn how to retrieve and send data to the server and manipulate the database content. Routing will later make your example app look and behave like a real website. Next, you'll get to grips with Meteor's reactivity concept that can rerun functions when data changes while you're building your own reactive object, and package it later for drop-in use. After your app is ready, the book continues with ways of deploying your app on different types of servers. Finally, we will take a look at testing packages and the application itself.

What You Will Learn

Create reactive templates that update themselves when data changes

Use database queries on the client and the server to retrieve, sort, and manipulate datasets

Understand data synchronization using a publication/subscription model and make API calls a thing of the past

Discover how you can secure your data flow on the server side to keep confidential data secret

Add routing to a single-page application and make it appear like a real website

Build your own advanced reactive objects and make everything rerun when you want

Make your own Meteor packages and learn how to make them public

Unit test your packages and Meteor applications

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.