Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Getting Started with Meteor.js JavaScript Framework - Second Edition
Getting Started with Meteor.js JavaScript Framework - Second Edition
Getting Started with Meteor.js JavaScript Framework - Second Edition
Ebook253 pages1 hour

Getting Started with Meteor.js JavaScript Framework - Second Edition

Rating: 0 out of 5 stars

()

Read preview

About this ebook

About This Book
  • 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
Who This Book Is For

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.

LanguageEnglish
Release dateJun 30, 2015
ISBN9781785282270
Getting Started with Meteor.js JavaScript Framework - Second Edition

Related to Getting Started with Meteor.js JavaScript Framework - Second Edition

Related ebooks

Programming For You

View More

Related articles

Reviews for Getting Started with Meteor.js JavaScript Framework - Second Edition

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    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 for more details.

    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

    Enjoying the preview?
    Page 1 of 1