Book Image

Build Applications with Meteor

Book Image

Build Applications with Meteor

Overview of this book

This book starts with the basic installation and overview of the main components in Meteor. You’ll get hands-on multiple versatile applications covering a wide range of topics from adding a front-end views with the hottest rendering technology React to implementing a microservices oriented architecture.All the code is written with ES6/7 which is the latest significantly improved JavaScript language. We’ll also look at real-time data streaming, server to server data exchange, responsive styles on the front-end, full-text search functionality, and integration of many third-party libraries and APIs using npm. By the end of the book, you’ll have the skills to quickly prototype and even launch your next app idea in a matter of days.
Table of Contents (16 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
8
Build a Chatbot with Facebook’s Messenger Platform

Importing the data


They are many ways of importing existing data into MongoDB. It depends on many factors, but the two most important ones are the source and data model. Our data sample is in JSON format, which is the format of the documents stored in MongoDB collections. The way MongoDB works is that behind the scenes, it encodes the JSON documents in a binary format—BSON (Binary JSON)—with some additional metadata, and when we query the collections, we get plain JSON objects. JSON is what we, JavaScript developers, naturally think of data that makes MongoDB extremely easy to work with; this is also the main reason why it is one of the most popular NoSQL databases.

How we model our collections is completely different from how we'd model our tables in a relational database. Data modeling in MongoDB is a big topic and it's out of the scope of this book; however, we actually did a bit of data modeling in our Redux stores in the previous chapters. We started modeling our stores with the question...