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

Building the app


The UI of the app should look something like this:

It will have a search bar, a result list, and a map where we can visually locate the search results. We have already created the app and imported the data; now open it with the editor of your choice and start creating the required folders and files:

As you may have noticed, we are keeping the same folder structure as we did in the previous chapters. Since we will be using Redux to store some of the application's state, our first step is to define the user actions and what state we want to persist. Let's list them:

  • A text query: We can persist the user input in our store
  • Returned results: We will persist the result from the query and pass it down to the children components for rendering
  • Going to a location: The user should be able to click on an item in the result list and the map should be updated to that location based on the latitude and longitude of the record

Let's start creating all the actions creators and action types in...