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

Preface

This book will help you explore the basics of Meteor, right from its core components to understanding how the platform works for building a variety of applications. This book will also help in familiarizing you with a variety of modern-day applications. It will also give an introduction to various systems, such as Redux and React, and explore how to launch an app idea in a very short period of time.

What this book covers

Chapter 1Foundation of Meteor, walks you through the installation of Meteor and getting to grips with the core concepts of the framework.

Chapter 2, Building a Shopping Cart, teaches you to build a CRUD shopping cart application using React as a view layer. Also, we will cover client-side routing and Meteor methods.

Chapter 3, Style Your React Components with Bootstrap and Material Design, provides an overview of the responsive web design by building a mobile first CSS grid from scratch using SASS and LESS; then we will move on to exploring the two most popular CSS frameworks: Bootstrap and Material Design. By styling the shopping cart application from the last chapter, we will go over the challenges of building scalable CSS and concepts such as CSS modules and React inline styles.

Chapter 4, Real-Time Twitter Streaming, introduces a frontend state management container, called Redux. We will also become familiar with Twitter’s Streaming API by building an application that will parse tweets by user and location, perform a simple sentiment analysis, and ingest them into MongoDB.

Chapter 5Developing Kanban Project Management Tool, outlines the steps for building a Kanban app by implementing the React DnD library; we will also learn how we can enhance our React components using a pattern called Higher-Order Components.

Chapter 6, Building a Real-Time Search Application, explores adding a full-text search on MongoDB collection to our Meteor application. Calling the async functions in Meteor Methods with Fibers and Promises, and adding the native Node.js MongoDB, driver will also be covered.

Chapter 7, Real-Time Maps, covers adding user accounts into our Meteor app, client-side routing, and real-time geo functionality with React-Leaflet components.

Chapter 8, Build a Chatbot with Facebook’s Messenger Platform, gets you started with using Angular 2 for your view layer. We will also add a distributed database, Cassandra, and with GraphQL we will be able to query both the MongoDB and Cassandra databases in a single trip to the server. Using the Wit.ai API, we will build a chatbot prototype that will mock up an online flower store.

Chapter 9, Build Internet of Things Platform, explores another data transport layer, gRPC from Google, by implementing a server-to-server data transport without human intervention.

What you need for this book

For this book, you will need a text editor and OS X, Windows, or a Linux box.

Who this book is for

If you are a developer who is looking forward to taking your application development skills with Meteor to the next level by getting your hands on different projects, this book is for you.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "All native npm packages' metadata is in the package.json file."

A block of code is set as follows:

function Greeting({ hello }) {
      return <div>{hello}</div>;
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

server.addProtoService(messages_proto.Messages.service, { 
    sendMessage: sendMessage,
    clientStream: clientStream
 });

Any command-line input or output is written as follows:

>> sudo apt-get update

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Here, we added an inner grid with two full-size columns; one for the Price of an item and the other will wrap up the Quantity component."

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book-what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail [email protected], and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail address and password.
  2. Hover the mouse pointer on the SUPPORT tab at the top.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box.
  5. Select the book for which you're looking to download the code files.
  6. Choose from the drop-down menu where you purchased this book from.
  7. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows
  • Zipeg / iZip / UnRarX for Mac
  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Build-Applications-with-Meteor. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/BuildApplicationswithMeteor_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at [email protected] with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at [email protected], and we will do our best to address the problem.