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

Drag and drop in React


We can't have a Kanban Board app without a drag and drop (DnD) UI functionality, which is the core UI of any Kanban software. Thanks to Dan Abramov for his DnD React library, we can now easily implement and customize such a functionality in React. The library is built on top of Flux—the original unidirectional data architecture from Facebook (Redux was later developed by Dan Abramov, who was influenced by Flux)—and can beautifully fit into our stack without having any fears about breaking the data flow pattern.

The best way to get familiar with the library is by building a React DnD introduction app and exploring the API in a step-by-step manner.

Fire up your terminal and create a Meteor app:

>> meteor create dnd-intro

Install React and DnD packages:

>> npm install react —save
>> npm install react-dom —save
>> npm install react-dnd —save
>> npm install react-dnd-html5-backend —save

As shown in the following diagram, the library consists of three...