Getting Started with Meteor.js JavaScript Framework - Second Edition
By Strack Isaac
()
About this ebook
- 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
This book is for developers or students who have a working knowledge of JavaScript and HTML, and want to learn how to quickly develop full-stack web applications using pure JavaScript.
Related to Getting Started with Meteor.js JavaScript Framework - Second Edition
Related ebooks
Meteor Design Patterns Rating: 0 out of 5 stars0 ratingsInstant HTML5 Geolocation How-To Rating: 0 out of 5 stars0 ratingsjQuery Mobile Web Development Essentials - Third Edition Rating: 0 out of 5 stars0 ratingsJasmine JavaScript Testing - Second Edition Rating: 0 out of 5 stars0 ratingsDeveloping Windows Store Apps with HTML5 and JavaScript Rating: 0 out of 5 stars0 ratingsComputer Vision for the Web Rating: 0 out of 5 stars0 ratingsBuilding Python Real-Time Applications with Storm Rating: 0 out of 5 stars0 ratingsResponsive Media in HTML5 Rating: 0 out of 5 stars0 ratingsAndroid Application Programming with OpenCV Rating: 3 out of 5 stars3/5JavaScript Concurrency Rating: 0 out of 5 stars0 ratingsHTML5 for Flash Developers Rating: 5 out of 5 stars5/5Android Studio 2 Essentials - Second Edition Rating: 0 out of 5 stars0 ratingsInstant StyleCop Code Analysis How-to Rating: 0 out of 5 stars0 ratingsDeploying Node.js Rating: 5 out of 5 stars5/5Instant Hands-on Testing with PHPUnit How-to Rating: 0 out of 5 stars0 ratingsRedmine Plugin Extension and Development Rating: 0 out of 5 stars0 ratingsLearning jQuery 3 - Fifth Edition Rating: 0 out of 5 stars0 ratingsBuilding Single-page Web Apps with Meteor Rating: 5 out of 5 stars5/5Express Web Application Development Rating: 3 out of 5 stars3/5Building Web Applications with Python and Neo4j Rating: 0 out of 5 stars0 ratingsGetting Started with OpenCart Module Development Rating: 0 out of 5 stars0 ratingsApp Inventor 2 Essentials Rating: 3 out of 5 stars3/5Mastering NetBeans Rating: 0 out of 5 stars0 ratingsJavaScript Mobile Application Development Rating: 0 out of 5 stars0 ratingsMastering MeteorJS Application Development Rating: 4 out of 5 stars4/5Node.js 6.x Blueprints Rating: 0 out of 5 stars0 ratingsNW.js Essentials Rating: 0 out of 5 stars0 ratingsXamarin Mobile Application Development for Android - Second Edition Rating: 0 out of 5 stars0 ratingsjQuery Design Patterns Rating: 0 out of 5 stars0 ratings
Programming For You
HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsLearn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5The Unofficial Guide to Open Broadcaster Software: OBS: The World's Most Popular Free Live-Streaming Application Rating: 0 out of 5 stars0 ratingsCoding All-in-One For Dummies Rating: 4 out of 5 stars4/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming Rating: 0 out of 5 stars0 ratingsSQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5The Little SAS Book: A Primer, Sixth Edition Rating: 5 out of 5 stars5/5Teach Yourself C++ Rating: 4 out of 5 stars4/5Pokemon Go: Guide + 20 Tips and Tricks You Must Read Hints, Tricks, Tips, Secrets, Android, iOS Rating: 5 out of 5 stars5/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5
Reviews for Getting Started with Meteor.js JavaScript Framework - Second Edition
0 ratings0 reviews
Book preview
Getting Started with Meteor.js JavaScript Framework - Second Edition - Strack Isaac
Table of Contents
Getting Started with Meteor.js JavaScript Framework Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Setup and Installation
Installing using curl
Loading an example application
Selecting your file's location
Loading the example application
Starting the example application
Previewing the application
Help! I made too many changes!
Making code changes
Changing from Leaderboard to Yay Science!
Summary
2. Reactive Programming…It's Alive!
Creating the Lending Library
Creating the base application
Creating a Collection
Having fun with the browser console
Adding some data
Displaying collections in HTML
Cleaning up
Creating a reaction
Multiple clients
Summary
3. Why Meteor Rocks!
Modern web applications
The origin of the web app (client/server)
The rise of the machines (MVC)
The browser grows up
A giant Meteor appears!
Data On The Wire
Latency Compensation
Full Stack Reactivity
Let's create some templates
Summary
4. Templates
A new HTML template
Gluing it all together
Displaying items
Additional view states
Adding events
Model updates
Style updates
Summary
5. Data – Meteor Style!
Document-oriented storage
Why not use a relational database?
MongoDB
Using direct commands
Broadcasting changes
Configuring publishers
Turning off autopublish
Listing Categories
Listing items
Checking your streamlined data
Summary
6. Application Structure – Client, Server, and Public (oh my!)
The client and server folders
The public folder
The security and accounts
Removing insecure
Adding an admin account
Granting admin permissions
Customizing results
Modifying Meteor.publish()
Adding owner privileges
Enabling multiple users
Summary
7. Packaging and Deploying
Third-party packages
Finding the available packages
Bundling your application
Deploying your application to Meteor's servers
Updating Meteor's servers
Using your own hostname
Deploying your application to a custom server
The server setup
Installing and configuring MUP
Deploying your app using MUP
Summary
Index
Getting Started with Meteor.js JavaScript Framework Second Edition
Getting Started with Meteor.js JavaScript Framework Second Edition
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: December 2012
Second edition: June 2015
Production reference: 1250615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-554-7
www.packtpub.com
Credits
Author
Isaac Strack
Reviewers
Netanel Gilad
Flávio Juvenal da Silva Junior
Arthur Pham
Commissioning Editor
Veena Pagare
Acquisition Editors
Subho Gupta
James Jones
Content Development Editor
Anish Sukumaran
Technical Editor
Menza Mathew
Copy Editor
Jasmine Nadar
Project Coordinator
Izzat Contractor
Proofreader
Safis Editing
Indexer
Tejal Daruwale Soni
Graphics
Jason Monteiro
Production Coordinator
Manu Joseph
Cover Work
Manu Joseph
About the Author
Isaac Strack is a design technologist and STEM education advocate, currently working as a solutions consultant for Adobe Systems. With more than 15 years of experience in management information systems and web and creative technologies, Isaac has a strong background in modern web application development. He is the author of the Packt Publishing book Meteor Cookbook and the Packt Publishing video series Learning Meteor Application Development; he also assisted recently as a technical reviewer for another Packt Publishing book named Building Single-page Web Apps with Meteor. He holds a patent for online fraud detection and is a co-captain of the Salt Lake City Meteor Meetup group. He is an experienced lecturer/speaker. Isaac regularly mentors others at boot camps, training events, and conferences, such as UtahJS, DevMountain Meteor Day, NMC Summer Conference, Adobe workshops/events, and the Consumer Electronics Show (CES).
A huge thank you to my family, especially my mom, who have loved me despite instead of because. A shout out to my amazing daughters, without whom I wouldn't be long for this world. Sunshine, Monkey, Boogers, Pig, this one is for you.
About the Reviewers
Netanel Gilad is an enthusiastic developer with expertise in web development. He loves to learn everything, from new web development frameworks to setting up a Continuous Integration environment to creating the ultimate application architecture. He has led a team and worked on a mission-critical C2 web application with high-performance requirements and an emphasis on UX. Netanel is currently working on multiple web-related projects and is a coauthor of the popular Meteor package angular-meteor, which brings the worlds of Angular and Meteor together.
Flávio Juvenal da Silva Junior is a Brazilian software developer. He works at Vinta Software Studio (http://www.vinta.com.br), a software shop that uses state-of-the-art tools such as Django or Meteor to build web and mobile products from the backend to UX.
He believes that programming is a mix of art and engineering; therefore, the programmer has the right to choose the best tools (such as Meteor) to transform clients' expectations into elegant solutions.
Arthur Pham has been working for Thomson Reuters as a lead quantitative engineer since 2006. He has spent many years designing and implementing derivative pricing models and still loves to learn new programming languages such as F#, C++, Python, Flex/ActionScript, C#, Ruby, and JavaScript.
He currently lives in New York, USA, and can be contacted on twitter at @arthurpham.
www.PacktPub.com
Support files, eBooks, discount offers, and more
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Free access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access.
Preface
We live in amazing times. Advances in medicine, communication, physics, and all other scientific fields provide us with opportunities to create things that were literally impossible to create only a short while ago.
Yet, we aren't easily amazed. Moore's law has not only affected how fast our computers are, it has significantly increased our expectations as well. We've come to expect wondrous advances, and therefore, what was once amazing has become…well…expected. It's a rare thing, indeed, to find something that takes us by surprise—something that renews that childhood sense of wonder we all secretly want back because it was stolen from us.
Well, get ready to regain some of that wonder. A dedicated group of computer scientists, who were determined to make something wondrous, have created a new JavaScript framework called Meteor. You may be thinking, A new JavaScript framework? That's nothing special.
And, if that's all Meteor is, you'd be correct. However, fortunately for you, that's not the end of the story.
Meteor is a reactive, simple, and powerful application platform, capable of producing sophisticated, robust web and mobile applications with just a few lines of code.
In the context of modern web applications, it is state-of-the-art. Using established, proven development design patterns, Meteor takes all the mundane parts of building an app and does them all for you. Therefore, you get to focus on building a solid application without getting bogged down with the