Learn Meteor - Node.js and MongoDB JavaScript platform
By Arnaud Weil
5/5
()
About this ebook
Be ready for coding away next week using Meteor
You're a developer who knows nothing to Meteor. Which is fine, except that you need to start coding your next application using Meteor.
Don't worry: I have you covered. I've been training hundreds of developers like you during 15 years, and converted my experience into this book. I know from experience teaching what takes more time to learn in Meteor, and will spend time only where appropriate.
Plus this book is packed with exercises which build up into a full project: you develop a small e-commerce application. You’ll allow users to browse for products, add them to their basket, and you’ll also create a full back-end where the site administrators will be able to list, create, modify, and delete products.
Read this book, and you can code your Meteor application within a week.
Arnaud Weil
Arnaud Weil is a born developper: when he was a kid he was controlling his electric train using an Atari ST and some self-made electronics, then as a teenager created and distributed worldwide one of the first Web browsers for some of the first pocket computers, when the Web was just beginning. In fact, he loves coding. Then came .NET and from 2001 Arnaud has been coding using ASP.NET, WPF, WinForms, Silverlight, WCF, XAML for all kind of applications from factory tools to smarphone applications to house control solutions. When not coding, he teaches fellow developers and provides consulting for development teams to reach their targets in the most efficient way. His status as a freelancer allows him to help his clients with many different projects. As things move on, Arnaud also learned to love HTML5, JavaScript and all the great tools that allow building professional software with those technologies. He puts an emphasis on writing modular, clever programs using agile methods and a bunch of automated testing. But what Arnaud enjoys most is helping other developers: that's why he teaches, speaks, and began writing books.
Read more from Arnaud Weil
Learn WPF MVVM - XAML, C# and the MVVM pattern Rating: 4 out of 5 stars4/5Learn Kubernetes - Container orchestration using Docker: Learn Collection Rating: 4 out of 5 stars4/5Learn Kubernetes & Docker - .NET Core, Java, Node.JS, PHP or Python Rating: 0 out of 5 stars0 ratingsLearn Docker - .NET Core, Java, Node.JS, PHP or Python: Learn Collection Rating: 5 out of 5 stars5/5Learn Microservices - ASP.NET Core and Docker Rating: 0 out of 5 stars0 ratingsLearn ASP.NET MVC Rating: 4 out of 5 stars4/5Learn ASP.NET Core MVC - Be Ready Next Week Using Visual Studio 2017 Rating: 5 out of 5 stars5/5
Related to Learn Meteor - Node.js and MongoDB JavaScript platform
Related ebooks
jQuery Design Patterns Rating: 0 out of 5 stars0 ratingsASP.NET 2.0 Web Parts in Action: Building Dynamic Web Portals Rating: 0 out of 5 stars0 ratingsGetting Started with Meteor.js JavaScript Framework - Second Edition Rating: 0 out of 5 stars0 ratingsMastering MeteorJS Application Development Rating: 4 out of 5 stars4/5Learning Underscore.js Rating: 0 out of 5 stars0 ratingsWeb Technology with Node js, Angular js and MySQL Rating: 0 out of 5 stars0 ratingsLearn ASP.NET MVC Rating: 4 out of 5 stars4/5JavaScript: Optimizing Native JavaScript: Designing, Programming, and Debugging Native JavaScript Applications Rating: 0 out of 5 stars0 ratingsYour First Week With Node.js Rating: 0 out of 5 stars0 ratings.Net Framework and Programming in ASP.NET Rating: 0 out of 5 stars0 ratingsMastering NetBeans Rating: 0 out of 5 stars0 ratingsDeploying Node.js Rating: 5 out of 5 stars5/5AngularJS Web Application Development Cookbook Rating: 0 out of 5 stars0 ratingsMeteor in Action Rating: 0 out of 5 stars0 ratingsNode.js 6.x Blueprints Rating: 0 out of 5 stars0 ratingsMeteor Cookbook Rating: 5 out of 5 stars5/5PHP Ajax Cookbook Rating: 2 out of 5 stars2/5Software architecture A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsLearning Highcharts 4 Rating: 0 out of 5 stars0 ratingsLo-Dash Essentials Rating: 0 out of 5 stars0 ratingsAndroid Studio Electric Eel Essentials - Java Edition: Developing Android Apps Using Android Studio 2022.1.1 and Java Rating: 0 out of 5 stars0 ratingsjQuery for Designers Beginner's Guide Second Edition Rating: 5 out of 5 stars5/5JavaScript Concurrency Rating: 0 out of 5 stars0 ratingsjQuery Mobile Web Development Essentials - Third Edition Rating: 0 out of 5 stars0 ratingsYou Want to Do What with PHP? Rating: 3 out of 5 stars3/5Data-oriented Development with AngularJS Rating: 0 out of 5 stars0 ratingsProfessional JavaScript for Web Developers Rating: 0 out of 5 stars0 ratingsASP.NET 4.0 in Practice Rating: 0 out of 5 stars0 ratingsDeveloping Web Services with Java APIs for XML Using WSDP 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 Learn Meteor - Node.js and MongoDB JavaScript platform
1 rating0 reviews
Book preview
Learn Meteor - Node.js and MongoDB JavaScript platform - Arnaud Weil
Learn Meteor - Node.js and MongoDB JavaScript platform
Be ready for coding away next week using Meteor
Arnaud Weil
This book is for sale at http://leanpub.com/learnmeteor
This version was published on 2017-07-07
publisher's logo* * * * *
This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do.
* * * * *
© 2016 - 2017 Arnaud Weil
To my wonderful family. Your love and support fueled this book.
To my Verallia and Bruitparif clients, whose demanding projects helped me discover and challenge Meteor.
Table of Contents
1. Introduction
1.1 What this book is not
1.2 Prerequisites
1.3 How to read this book
1.4 Tools you need
1.5 Source code
2. Why Meteor ?
2.1 How I felt in love with Meteor
2.2 Why is Meteor so productive?
2.3 Where is the catch?
3. Beginning with Meteor
3.1 Setting up your development machine
3.2 Creating a meteor application
3.3 What are those files ?
3.4 Meteor is listening to your code
3.5 The HTML file
3.6 It’s your turn to code: do-it-yourself
3.7 Exercise - Create the application
3.8 Exercise solution
4. Blaze, Spacebars and reactivity
4.1 Spacebars
4.2 Where does the data come from?
4.3 Helpers
4.4 Client and server code
4.5 Organizing things
4.6 Exercise - Display the current time
4.7 Exercise solution
4.8 Reactivity
4.9 Available blocks
4.10 Template events
4.11 Data context
5. Managing data from a MongoDB database
5.1 What is MongoDB?
5.2 Collections
5.3 Exercise - Manually create a news collection in MongoDB
5.4 Exercise solution
5.5 Mongo.Collection
5.6 Exercise: Display the news
5.7 Exercise solution
5.8 Query selectors
5.9 Updating data with a Mongo.Collection
5.10 Exercise: Enable adding a piece of news
5.11 Exercise solution
5.12 Exercise: Enable users to delete news
5.13 Exercise solution
6. Packages: admin dashboard, navigation, validation, forms generation
6.1 What are packages
6.2 Searching for and installing packages
6.3 Back-office management
6.4 Exercise: Create back-office for data management
6.5 Exercise solution
6.6 Navigation
6.7 Exercise: Enable routing and create a layout
6.8 Exercise solution
6.9 Schemas, validation
6.10 Exercise: Create a collection and schema for the products
6.11 Exercise solution
6.12 CRUD forms generation
6.13 Exercise: Create GUI for the user to display and add products with validation
6.14 Exercise solution
6.15 Bootstrap
6.16 Exercise: Add some style to the application
6.17 Exercise solution
7. Accounts: user management
7.1 Meteor’s account system
7.2 Exercise: Secure the products management
7.3 Exercise solution
8. Going further
8.1 MiniMongo: you don’t even need MongoDB
8.2 Exercise: Create and manage a shopping cart
8.3 Exercise solution
8.4 Getting out of prototyping
8.5 Exercise: Remove the autopublish package
8.6 Exercise solution
8.7 Exercise: Remove the insecure package
8.8 Exercise solution
Definitions
Bundling
Minification
npm
Spacebars
A word from the author
The Learn collection
1. Introduction
1.1 What this book is not
I made my best to keep this book small, so that you can learn Meteor quickly without getting lost in petty details. If you’re looking for a reference book where you’ll find answers to all the questions you may have within the next 4 years of your Meteor practice, you’ll find other heavy books for that.
My purpose is to swiftly provide you with the tools you need to code your first Meteor application and be able to look for more by yourself when needed. While some authors seems to pride themselves in having the thickest book, in this series I’m glad I achieved the thinnest possible book for my purpose. Though I tried my best to keep all of what seems necessary, based on my 14 years experience of teaching.
I assume that you know what Meteor is and when to use it. In case you don’t, read the following Why Meteor ? chapter.
1.2 Prerequisites
In order for this book to meet its goals, you must :
Have basic experience creating applications with JavaScript.
Have working knowledge of HTML.
Know what a Web application is.
1.3 How to read this book
This book’s aim is to make you productive as quickly as possible. For this we’ll use some theory, several demonstrations, plus exercises. Exercises appear like the following:
Do it yourself: Time to grab your keyboard and code away to meet the given objectives.
1.4 Tools you need
The only tools you’ll need to work through that book are:
A Windows, Linux or OS