Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Build Applications with Meteor
  • Table Of Contents Toc
Build Applications with Meteor

Build Applications with Meteor

By : Dobrin Ganev
4 (3)
close
close
Build Applications with Meteor

Build Applications with Meteor

4 (3)
By: Dobrin Ganev

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 (10 chapters)
close
close
8
Build a Chatbot with Facebook’s Messenger Platform

Index a text field


In order to do a full-text search on a collection, we need to index a text field(s). Any field in our collection of the type string can be indexed; it can be just one field or all of them.

Let's start exploring the imported data by querying it in the shell.

Without stopping the application, open another terminal in the app directory and start the mongo shell:

>> meteor mongo

To see all the databases in our application, we can use the following command:

meteor:PRIMARY> show dbs
local 0.009GB
meteor 0.005GB

To switch to the meteor database, use:

meteor:PRIMARY> use meteor
switched to db meteor

To show all the collections in the database, use:

meteor:PRIMARY> show collections
restaurants

To count the number of documents in the restaurant collection, use:

meteor:PRIMARY> db.restaurants.count()
25359

We have imported 25,359 documents in our collection. To get the first document of the collection, we can perform the following query:

meteor:PRIMARY> db.restaurants.findOne...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Build Applications with Meteor
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon